NetworkManager/src/libnm-lldp
Thomas Haller 3f3f446f6e core: workaround "-Wnonnull-compare" warning in nm_lldp_neighbor_tlv_get_oui()
../src/libnm-lldp/nm-lldp-neighbor.c: In function ‘nm_lldp_neighbor_tlv_get_oui’:
  ../src/libnm-std-aux/nm-std-aux.h:191:12: error: ‘nonnull’ argument ‘oui’ compared to NULL [-Werror=nonnull-compare]
    191 |         if (expr)                      \
        |            ^
  ../src/libnm-std-aux/nm-std-aux.h:202:27: note: in expansion of macro ‘_NM_BOOLEAN_EXPR_IMPL’
    202 |                           _NM_BOOLEAN_EXPR_IMPL(NM_UNIQ, expr))
        |                           ^~~~~~~~~~~~~~~~~~~~~
  ../src/libnm-glib-aux/nm-macros-internal.h:1693:31: note: in expansion of macro ‘NM_BOOLEAN_EXPR’
   1693 | #define _G_BOOLEAN_EXPR(expr) NM_BOOLEAN_EXPR(expr)
        |                               ^~~~~~~~~~~~~~~
  /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
   1244 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
        |                                           ^~~~~~~~~~~~~~~
  /usr/include/glib-2.0/glib/gmessages.h:661:9: note: in expansion of macro ‘G_LIKELY’
    661 |     if (G_LIKELY (expr)) \
        |         ^~~~~~~~
  ../src/libnm-lldp/nm-lldp-neighbor.c:651:5: note: in expansion of macro ‘g_return_val_if_fail’
    651 |     g_return_val_if_fail(oui, -EINVAL);
        |     ^~~~~~~~~~~~~~~~~~~~

(cherry picked from commit a500538fb2)
2024-06-01 17:18:58 +02:00
..
meson.build lldp: add libnm-lldp as fork of systemd's sd_lldp_rx 2022-10-25 10:59:00 +02:00
nm-lldp-neighbor.c core: workaround "-Wnonnull-compare" warning in nm_lldp_neighbor_tlv_get_oui() 2024-06-01 17:18:58 +02:00
nm-lldp-neighbor.h lldp: add libnm-lldp as fork of systemd's sd_lldp_rx 2022-10-25 10:59:00 +02:00
nm-lldp-network.c libnm-lldp: use ETH_P_ALL instead of NM_ETHERTYPE_LLDP for the socket 2024-04-05 11:52:18 +02:00
nm-lldp-network.h lldp: add libnm-lldp as fork of systemd's sd_lldp_rx 2022-10-25 10:59:00 +02:00
nm-lldp-rx-internal.h lldp: add libnm-lldp as fork of systemd's sd_lldp_rx 2022-10-25 10:59:00 +02:00
nm-lldp-rx.c all: ensure signendess for arguments of NM_{MIN,MAX,CLAMP}() macros matches 2023-08-07 09:24:36 +02:00
nm-lldp-rx.h lldp: add libnm-lldp as fork of systemd's sd_lldp_rx 2022-10-25 10:59:00 +02:00
nm-lldp.h lldp: add libnm-lldp as fork of systemd's sd_lldp_rx 2022-10-25 10:59:00 +02:00