Mercurial > jwe > octave
changeset 24092:80906ac05e7d
* lex.ll: Disable GCC diagnostic -Wimplicit-fallthrough.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 22 Sep 2017 22:03:01 -0400 |
parents | 19d8d99152e9 |
children | 7d9ba57201b4 |
files | libinterp/parse-tree/lex.ll |
diffstat | 1 files changed, 2 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll Fri Sep 22 19:03:03 2017 -0700 +++ b/libinterp/parse-tree/lex.ll Fri Sep 22 22:03:01 2017 -0400 @@ -47,6 +47,7 @@ #pragma GCC diagnostic ignored "-Wold-style-cast" #pragma GCC diagnostic ignored "-Wsign-compare" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" +#pragma GCC diagnostic ignored "-Wimplicit-fallthrough" #endif @@ -1777,16 +1778,8 @@ %{ #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) -// Disable this warning for code that is generated by flex. -#pragma GCC diagnostic push +// Disable these warnings for flex code. #pragma GCC diagnostic ignored "-Wold-style-cast" -#endif -%} - -%{ -#if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) -// Also disable this warning for functions that is generated by flex -// after the pattern rules. #pragma GCC diagnostic ignored "-Wunused-parameter" #endif %}