about summary refs log tree commit diff stats
path: root/073scheduler.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2018-04-20 00:06:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2018-04-20 00:06:38 -0700
commit26a5d50613a3c6cc60f9b6206df15772964eb853 (patch)
treea1bb5b80290a424dbdc436c0a125b4aba6cef697 /073scheduler.cc
parent8878326574db7c121ce1bc06b3014eb1986946cc (diff)
downloadmu-26a5d50613a3c6cc60f9b6206df15772964eb853.tar.gz
4235 - fix a build issue for Apple clang 900.0.38
The trouble with rewriting 'unused' to '__attribute__(unused)' is that
if we happen to deliberately introduce '__attribute__(unused)' somehow,
say in the standard headers, then it gets expanded twice to '__attribute__(__attribute__(unused))'.
So we switch to a synonym.
Diffstat (limited to '073scheduler.cc')
-rw-r--r--073scheduler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/073scheduler.cc b/073scheduler.cc
index 51b3584f..75a17d33 100644
--- a/073scheduler.cc
+++ b/073scheduler.cc
@@ -312,7 +312,7 @@ def f2 [
 +error: f2: divide by zero in '3:num <- divide-with-remainder 4, 0'
 -error: f2: divide by zero in '4:num <- divide-with-remainder 4, 0'
 
-:(after "operator<<(ostream& os, unused end)")
+:(after "operator<<(ostream& os, vestigial end)")
   if (Trace_stream && Trace_stream->curr_label == "error" && Current_routine) {
     Current_routine->state = COMPLETED;
   }
59 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213