mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-27 11:06:53 +01:00
Protect C language extensions with two leading and trailing underscores
This should make their usage safer against user macros.
This commit is contained in:
@@ -29,5 +29,5 @@
|
||||
|
||||
#define libbsd_link_warning(symbol, msg) \
|
||||
static const char libbsd_emit_link_warning_##symbol[] \
|
||||
__attribute__((used,section(".gnu.warning." #symbol))) = msg;
|
||||
__attribute__((__used__,__section__(".gnu.warning." #symbol))) = msg;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user