Mercurial > octave
changeset 21987:f31f30a9348f
disable -Wsign-compare for code generated by flex
* oct-tex-lexer.in.ll, lex.ll: Use pragma to disable -Wsign-compare
warning from GCC.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 28 Jun 2016 13:46:03 -0400 |
parents | 9e992b9ffc5f |
children | 3ff59d4f9411 |
files | libinterp/corefcn/oct-tex-lexer.in.ll libinterp/parse-tree/lex.ll |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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