wireshark/include
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
..
wireshark.h Add ws_version.h to wireshark.h 2021-12-21 23:00:04 +00:00
ws_attributes.h Add WS_DEPRECATED_X() function attribute 2022-10-10 20:27:33 +00:00
ws_codepoints.h Add a #define for REPLACEMENT CHARACTER and use it. 2022-10-16 23:36:12 +00:00
ws_compiler_tests.h
ws_diag_control.h Add macros to control lemon diagnostics 2022-11-20 10:11:27 +00:00
ws_log_defs.h Add a log domain for encoding errors and lower the log level 2022-09-28 14:57:51 +01:00
ws_posix_compat.h Add a ws_posix_compat.h header 2021-12-21 01:30:06 +00:00
ws_symbol_export.h Windows: Store "gui.console_open" in the Windows registry 2022-10-11 14:25:04 +01:00