Skip to content

Commit

Permalink
lib/defines.h: Remove condition on __STRICT_ANSI__
Browse files Browse the repository at this point in the history
We require C11 since a few releases ago.  It seems I missed this
reminder of ANSI C (C89) back then.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
  • Loading branch information
alejandro-colomar authored and ikerexxe committed Nov 28, 2023
1 parent 218235e commit 0d2fa50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
#endif

/* To be used for verified unused parameters */
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
#if defined(__GNUC__)
# define unused __attribute__((unused))
# define NORETURN __attribute__((__noreturn__))
# define format_attr(type, index, check) __attribute__((format (type, index, check)))
Expand Down

0 comments on commit 0d2fa50

Please sign in to comment.