]> git.proxmox.com Git - mirror_frr.git/blobdiff - tools/gcc-plugins/frr-format.c
Merge pull request #12816 from gpnaveen/stc_rte_err_msg
[mirror_frr.git] / tools / gcc-plugins / frr-format.c
index e9f397f225044859ec24c66ec6f25e52c8013324..2240a171b40e2c4be0d27c10a28b3c293a835aad 100644 (file)
@@ -1,24 +1,10 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
 /* Check calls to formatted I/O functions (-Wformat).
    Copyright (C) 1992-2019 Free Software Foundation, Inc.
 
    Extended for FRR's printfrr() with Linux kernel style extensions
    Copyright (C) 2019-2020  David Lamparter, for NetDEF, Inc.
-
-This file is part of GCC.
-
-GCC is free software; you can redistribute it and/or modify it under
-the terms of the GNU General Public License as published by the Free
-Software Foundation; either version 3, or (at your option) any later
-version.
-
-GCC is distributed in the hope that it will be useful, but WITHOUT ANY
-WARRANTY; without even the implied warranty of MERCHANTABILITY or
-FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-for more details.
-
-You should have received a copy of the GNU General Public License
-along with GCC; see the file COPYING.GPLv3.  If not see
-<http://www.gnu.org/licenses/>.  */
+ */
 
 #include "gcc-common.h"
 
@@ -1042,7 +1028,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;