diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2026-03-18 17:12:42 +0100 |
|---|---|---|
| committer | Thomas Weißschuh <linux@weissschuh.net> | 2026-03-22 11:03:58 +0100 |
| commit | 3eb97c4cbd4d874e7e327ec512f6169934e12b8a (patch) | |
| tree | 6933cddb69ab61724678ea5e0364dfe0d98c0cf8 /tools/perf/scripts/python | |
| parent | 9da0f529c089f00e6ab8b552d7407e612b7245a8 (diff) | |
tools/nolibc: avoid -Wundef warning for __STDC_VERSION__
With -std=c89 the macro __STDC_VERSION__ is not defined.
While undefined identifiers in '#if' directives are assumed to be '0',
with -Wundef a warning is emitted.
Avoid the warning by explicitly falling back to '0' if __STDC_VERSION__
is not provided by the preprocessor.
Fixes: 37219aa5b123 ("tools/nolibc: add __nolibc_static_assert()")
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260318-nolibc-wundef-v1-1-fcb7f9ac7298@weissschuh.net
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
