# HG changeset patch # User John W. Eaton # Date 1467135963 14400 # Node ID f31f30a9348f218de25e0c71c85b9f9e507df1dd # Parent 9e992b9ffc5fd7ece91603fc4786a752793b7d0d disable -Wsign-compare for code generated by flex * oct-tex-lexer.in.ll, lex.ll: Use pragma to disable -Wsign-compare warning from GCC. diff -r 9e992b9ffc5f -r f31f30a9348f libinterp/corefcn/oct-tex-lexer.in.ll --- a/libinterp/corefcn/oct-tex-lexer.in.ll Tue Jun 28 11:10:12 2016 +0200 +++ b/libinterp/corefcn/oct-tex-lexer.in.ll Tue Jun 28 13:46:03 2016 -0400 @@ -29,11 +29,12 @@ // This one needs to be global. #pragma GCC diagnostic ignored "-Wunused-function" -// Disable this warning for code that is generated by flex, including +// Disable these warnings for code that is generated by flex, including // pattern rules. Push the current state so we can restore the warning // state prior to functions we define at the bottom of the file. #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wold-style-cast" +#pragma GCC diagnostic ignored "-Wsign-compare" #endif // Define away the deprecated register storage class specifier to avoid diff -r 9e992b9ffc5f -r f31f30a9348f libinterp/parse-tree/lex.ll --- a/libinterp/parse-tree/lex.ll Tue Jun 28 11:10:12 2016 +0200 +++ b/libinterp/parse-tree/lex.ll Tue Jun 28 13:46:03 2016 -0400 @@ -40,11 +40,12 @@ // This one needs to be global. #pragma GCC diagnostic ignored "-Wunused-function" -// Disable this warning for code that is generated by flex, including +// Disable these warnings for code that is generated by flex, including // pattern rules. Push the current state so we can restore the warning // state prior to functions we define at the bottom of the file. #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wold-style-cast" +#pragma GCC diagnostic ignored "-Wsign-compare" #endif // Define away the deprecated register storage class specifier to avoid