Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153141362
D45825.id140434.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
444 B
Referenced Files
None
Subscribers
None
D45825.id140434.diff
View Options
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -244,8 +244,8 @@
_Generic(expr, t: yes, default: no)
#elif !defined(__cplusplus)
#define __generic(expr, t, yes, no) \
- __builtin_choose_expr( \
- __builtin_types_compatible_p(__typeof((0, (expr))), t), yes, no)
+ __builtin_choose_expr(__builtin_types_compatible_p( \
+ __typeof(((void)0, (expr))), t), yes, no)
#endif
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 10:55 AM (5 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31796436
Default Alt Text
D45825.id140434.diff (444 B)
Attached To
Mode
D45825: cdefs.h __generic: avoid gcc -Wunused-value
Attached
Detach File
Event Timeline
Log In to Comment