wireshark/plugins/epan
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
..
ethercat esl_eth: support nanosecond timestamps 2022-10-08 14:01:19 +00:00
falco_bridge Rename a bunch of things with "conversation". 2022-08-25 20:02:20 -07:00
gryphon CMake: Finish splitting ADD_PLUGIN_LIBRARY. 2022-04-04 23:10:57 +00:00
irda Rename a bunch of things with "conversation". 2022-08-25 20:02:20 -07:00
mate Add macros to control lemon diagnostics 2022-11-20 10:11:27 +00:00
opcua Fix some cppcheck issues 2022-11-18 10:07:57 +00:00
pluginifdemo pluginifdemo: Qt5->Qt6; bump version to 0.0.2 2022-08-15 05:07:46 +00:00
profinet Fix issue #18391 2022-10-11 11:28:54 +00:00
stats_tree tap: Adding flags for tap_packet 2022-06-10 05:46:15 +00:00
transum transum: expert infos are not Boolean fields. 2022-10-10 16:00:53 -07:00
unistim Use `register_dissector()` for more protocols 2022-08-09 18:50:08 +00:00
wimax CMake: Finish splitting ADD_PLUGIN_LIBRARY. 2022-04-04 23:10:57 +00:00
wimaxasncp Add macros to control lemon diagnostics 2022-11-20 10:11:27 +00:00
wimaxmacphy Use `register_dissector()` for more protocols 2022-08-09 18:50:08 +00:00