wireshark/plugins/epan/mate
João Valverde 79c3a77752 Add macros to control lemon diagnostics
Rename flex macros using parenthesis (mostly a style issue):

DIAG_OFF_FLEX -> DIAG_OFF_FLEX()
DIAG_ON_FLEX  -> DIAG_ON_FLEX()

Use the same kind of construct with lemon generated code using
DIAG_OFF_LEMON() and DIAG_ON_LEMON(). Use %include and %code
directives to enforce the desired order with generated code
in the middle in between pragmas.

Fix a clang-specific pragma to use DIAG_OFF_CLANG().

DIAG_OFF(unreachable-code) -> DIAG_OFF_CLANG(unreachable-code).

Apparently GCC is ignoring the -Wunreachable flag, that's why
it did not trigger an unknown pragma warning. From [1}:

  The -Wunreachable-code has been removed, because it was unstable: it
  relied on the optimizer, and so different versions of gcc would warn
  about different code.  The compiler still accepts and ignores the
  command line option so that existing Makefiles are not broken.  In some
  future release the option will be removed entirely. - Ian

[1] https://gcc.gnu.org/legacy-ml/gcc-help/2011-05/msg00360.html
2022-11-20 10:11:27 +00:00
..
examples
matelib
.editorconfig dfilter: Convert grammar.lemon to 4-space indentation 2021-12-02 15:48:40 +00:00
AUTHORS
CMakeLists.txt CMake: Disable -Werror for flex generated files 2022-11-17 10:23:12 +00:00
mate.h Windows: Fix warnings using flex 2021-10-22 06:41:44 +00:00
mate_grammar.lemon Add macros to control lemon diagnostics 2022-11-20 10:11:27 +00:00
mate_parser.l Add macros to control lemon diagnostics 2022-11-20 10:11:27 +00:00
mate_runtime.c Fix config.h include order 2021-09-20 20:16:52 +01:00
mate_setup.c Replace g_strdup_printf() with ws_strdup_printf() 2021-12-19 21:21:58 +00:00
mate_util.c Replace g_strdup_printf() with ws_strdup_printf() 2021-12-19 21:21:58 +00:00
mate_util.h Replace g_strdup_printf() with ws_strdup_printf() 2021-12-19 21:21:58 +00:00
packet-mate.c Fix config.h include order 2021-09-20 20:16:52 +01:00