ignore warnings from bison
authorMichael Gilbert <mgilbert@debian.org>
Sat, 19 Mar 2022 00:48:02 +0000 (00:48 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 19 Mar 2022 00:48:02 +0000 (00:48 +0000)
Gbp-Pq: Topic warnings
Gbp-Pq: Name bison.patch

tools/makedep.c

index eb2dc9dce0c8be2ce1e940be66e1016c1f756579..b04d7da086b3ee92c196870f8ec7e614f860445b 100644 (file)
@@ -2733,7 +2733,7 @@ static void output_source_y( struct makefile *make, struct incl_file *source, co
     if (find_include_file( make, header ))
     {
         output( "%s: %s\n", obj_dir_path( make, header ), source->filename );
-        output( "\t%s%s -p %s_ -o %s.tab.c -d %s\n",
+        output( "\t%s%s -Wno-deprecated -Wno-conflicts-rr -Wno-conflicts-sr -p %s_ -o %s.tab.c -d %s\n",
                 cmd_prefix( "BISON" ), bison, obj, obj_dir_path( make, obj ), source->filename );
         output( "%s.tab.c: %s %s\n", obj_dir_path( make, obj ),
                 source->filename, obj_dir_path( make, header ));
@@ -2741,7 +2741,7 @@ static void output_source_y( struct makefile *make, struct incl_file *source, co
     }
     else output( "%s.tab.c: %s\n", obj_dir_path( make, obj ), source->filename );
 
-    output( "\t%s%s -p %s_ -o $@ %s\n", cmd_prefix( "BISON" ), bison, obj, source->filename );
+    output( "\t%s%s -Wno-deprecated -Wno-conflicts-rr -Wno-conflicts-sr -p %s_ -o $@ %s\n", cmd_prefix( "BISON" ), bison, obj, source->filename );
 }