ignore warnings from bison
authorMichael Gilbert <mgilbert@debian.org>
Tue, 13 Sep 2022 00:46:21 +0000 (01:46 +0100)
committerMichael Gilbert <mgilbert@debian.org>
Tue, 13 Sep 2022 00:46:21 +0000 (01:46 +0100)
Gbp-Pq: Topic warnings
Gbp-Pq: Name bison.patch

tools/makedep.c

index bee31333a080d1916ea015267f770b18b0e5c12e..a7acba20116a383400229f63b4b053f8f6beb39a 100644 (file)
@@ -2582,7 +2582,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 ));
@@ -2590,7 +2590,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 );
 }