diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-07-24 14:52:24 -0400 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-07-26 15:38:16 -0400 |
| commit | 3d3ed1afb2cff65f0986ae6b9bc69f9ae1b372e1 (patch) | |
| tree | bf549cc38ca3eb6abe5fb7ad20f507a6d056636f /tools/gcc-plugins/frr-format.c | |
| parent | 594936dd0a77a07af0cedc68a1e35a835518840d (diff) | |
tools/gcc-plugins: make GCC 12 compatible
check_function_arguments_recurse() has received a new function argument
in GCC 12. Fill it in and add a compatibility wrapper.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tools/gcc-plugins/frr-format.c')
| -rw-r--r-- | tools/gcc-plugins/frr-format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gcc-plugins/frr-format.c b/tools/gcc-plugins/frr-format.c index e9f397f225..0a24b091a3 100644 --- a/tools/gcc-plugins/frr-format.c +++ b/tools/gcc-plugins/frr-format.c @@ -1042,7 +1042,7 @@ check_format_info (function_format_info *info, tree params, format_ctx.arglocs = arglocs; check_function_arguments_recurse (check_format_arg, &format_ctx, - format_tree, arg_num); + format_tree, arg_num, OPT_Wformat_); location_t loc = format_ctx.res->format_string_loc; |
