Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109930479
D45825.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.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
Wed, Feb 12, 9:40 AM (9 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16609004
Default Alt Text
D45825.diff (444 B)
Attached To
Mode
D45825: cdefs.h __generic: avoid gcc -Wunused-value
Attached
Detach File
Event Timeline
Log In to Comment