File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 193
193
194
194
/*
195
195
* GCC needs this on AIX for longjmp().
196
+ *
197
+ * We call it ND_NOT_REACHABLE rather than ND_UNREACHABLE, as, at
198
+ * least on some versions of Illumos (and Solaris?), ND_UNREACHABLE
199
+ * is defined differently by <net/if.h>.
196
200
*/
197
201
#if ND_IS_AT_LEAST_GNUC_VERSION (5 ,1 )
198
202
/*
202
206
* squelch the warning and ruin the process too, albeit in a different way).
203
207
* So please remember to use this very carefully.
204
208
*/
205
- #define ND_UNREACHABLE __builtin_unreachable();
209
+ #define ND_NOT_REACHABLE __builtin_unreachable();
206
210
#endif
207
211
208
212
#ifndef DIAG_OFF_ASSIGN_ENUM
241
245
#ifndef DIAG_ON_STRICT_PROTOTYPES
242
246
#define DIAG_ON_STRICT_PROTOTYPES
243
247
#endif
244
- #ifndef ND_UNREACHABLE
245
- #define ND_UNREACHABLE
248
+ #ifndef ND_NOT_REACHABLE
249
+ #define ND_NOT_REACHABLE
246
250
#endif
247
251
248
252
#endif /* _diag_control_h */
Original file line number Diff line number Diff line change @@ -312,6 +312,6 @@ nd_trunc_longjmp(netdissect_options *ndo)
312
312
* XL C that the function is noreturn, but GCC remains unaware of that and
313
313
* yields a "'noreturn' function does return" warning.
314
314
*/
315
- ND_UNREACHABLE
315
+ ND_NOT_REACHABLE
316
316
#endif /* _AIX */
317
317
}
You can’t perform that action at this time.
0 commit comments