summaryrefslogtreecommitdiffstats
path: root/tools/gcc-plugins/frr-format.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gcc-plugins/frr-format.c')
-rw-r--r--tools/gcc-plugins/frr-format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gcc-plugins/frr-format.c b/tools/gcc-plugins/frr-format.c
index 6d91d2cdc..efb2c6393 100644
--- a/tools/gcc-plugins/frr-format.c
+++ b/tools/gcc-plugins/frr-format.c
@@ -2343,7 +2343,7 @@ check_argument_type (const format_char_info *fci,
/* note printf extension type checks are *additional* - %p must always
* be pointer compatible, %d always int compatible.
*/
- if (!kef)
+ if (first_wanted_type->kind != CF_KIND_FORMAT || !kef)
return true;
const struct kernel_ext_fmt *kef_now;