mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 13:58:24 +00:00
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>
This commit is contained in:
parent
594936dd0a
commit
3d3ed1afb2
@ -1042,7 +1042,7 @@ check_format_info (function_format_info *info, tree params,
|
|||||||
format_ctx.arglocs = arglocs;
|
format_ctx.arglocs = arglocs;
|
||||||
|
|
||||||
check_function_arguments_recurse (check_format_arg, &format_ctx,
|
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;
|
location_t loc = format_ctx.res->format_string_loc;
|
||||||
|
|
||||||
|
@ -982,4 +982,9 @@ static inline void debug_gimple_stmt(const_gimple s)
|
|||||||
#define SET_DECL_MODE(decl, mode) DECL_MODE(decl) = (mode)
|
#define SET_DECL_MODE(decl, mode) DECL_MODE(decl) = (mode)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if BUILDING_GCC_VERSION < 12000
|
||||||
|
#define check_function_arguments_recurse(arg, ctx, tree, num, opt) \
|
||||||
|
check_function_arguments_recurse(arg, ctx, tree, num)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user