Messages in this thread | | | Subject | Re: [PATCH next] wifi: iwlwifi: Avoid disabling GCC specific flag with clang | From | Johannes Berg <> | Date | Thu, 16 Mar 2023 08:52:50 +0100 |
| |
On Wed, 2023-03-15 at 20:28 -0700, Nathan Chancellor wrote: > Clang errors: > > drivers/net/wireless/intel/iwlwifi/iwl-devtrace.c:15:32: error: unknown warning group '-Wsuggest-attribute=format', ignored [-Werror,-Wunknown-warning-option] > #pragma GCC diagnostic ignored "-Wsuggest-attribute=format" > ^ > 1 error generated.
Oops.
> The warning being disabled by this pragma is GCC specific. Guard its use > with CONFIG_CC_IS_GCC so that it is not used with clang to clear up the > error. >
Thanks.
johannes
| |