• Thomas Haller's avatar
    libnm-core/tests: fix "-Werror=logical-not-parentheses" warning in _sock_addr_endpoint() · 8190a68c
    Thomas Haller authored
        CC       libnm-core/tests/libnm_core_tests_test_general-test-general.o
      In file included from ../shared/nm-default.h:280:0,
                       from ../libnm-core/tests/test-general.c:24:
      ../libnm-core/tests/test-general.c: In function _sock_addr_endpoint:
      ../libnm-core/tests/test-general.c:5911:18: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
        g_assert (!host == (port == -1));
                        ^
      ../shared/nm-utils/nm-macros-internal.h:1793:7: note: in definition of macro __NM_G_BOOLEAN_EXPR_IMPL
         if (expr) \
             ^
      /usr/include/glib-2.0/glib/gmacros.h:376:43: note: in expansion of macro _G_BOOLEAN_EXPR
       #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR((expr)), 1))
                                                 ^
      /usr/include/glib-2.0/glib/gtestutils.h:116:49: note: in expansion of macro G_LIKELY
                                                    if G_LIKELY (expr) ; else \
                                                       ^
      ../libnm-core/tests/test-general.c:5911:2: note: in expansion of macro g_assert
        g_assert (!host == (port == -1));
        ^
    
    Fixes: 713e879d ('libnm: add NMSockAddrEndpoint API')
    (cherry picked from commit 1e8c0873)
    (cherry picked from commit fd8b78dd)
    8190a68c
Name
Last commit
Last update
..
tests Loading commit data...
meson.build Loading commit data...
nm-connection-private.h Loading commit data...
nm-connection.c Loading commit data...
nm-connection.h Loading commit data...
nm-core-enum-types.c.template Loading commit data...
nm-core-enum-types.h.template Loading commit data...
nm-core-internal.h Loading commit data...
nm-core-types-internal.h Loading commit data...
nm-core-types.h Loading commit data...
nm-crypto-gnutls.c Loading commit data...
nm-crypto-impl.h Loading commit data...
nm-crypto-nss.c Loading commit data...
nm-crypto.c Loading commit data...
nm-crypto.h Loading commit data...
nm-dbus-interface.h Loading commit data...
nm-dbus-utils.c Loading commit data...
nm-errors.c Loading commit data...
nm-errors.h Loading commit data...
nm-json.c Loading commit data...
nm-json.h Loading commit data...
nm-keyfile-internal.h Loading commit data...
nm-keyfile-utils.c Loading commit data...
nm-keyfile-utils.h Loading commit data...
nm-keyfile.c Loading commit data...
nm-property-compare.c Loading commit data...
nm-property-compare.h Loading commit data...
nm-setting-6lowpan.c Loading commit data...
nm-setting-6lowpan.h Loading commit data...
nm-setting-8021x.c Loading commit data...
nm-setting-8021x.h Loading commit data...
nm-setting-adsl.c Loading commit data...
nm-setting-adsl.h Loading commit data...
nm-setting-bluetooth.c Loading commit data...
nm-setting-bluetooth.h Loading commit data...
nm-setting-bond.c Loading commit data...
nm-setting-bond.h Loading commit data...
nm-setting-bridge-port.c Loading commit data...
nm-setting-bridge-port.h Loading commit data...
nm-setting-bridge.c Loading commit data...
nm-setting-bridge.h Loading commit data...
nm-setting-cdma.c Loading commit data...
nm-setting-cdma.h Loading commit data...
nm-setting-connection.c Loading commit data...
nm-setting-connection.h Loading commit data...
nm-setting-dcb.c Loading commit data...
nm-setting-dcb.h Loading commit data...
nm-setting-dummy.c Loading commit data...
nm-setting-dummy.h Loading commit data...
nm-setting-ethtool.c Loading commit data...
nm-setting-ethtool.h Loading commit data...
nm-setting-generic.c Loading commit data...
nm-setting-generic.h Loading commit data...
nm-setting-gsm.c Loading commit data...
nm-setting-gsm.h Loading commit data...
nm-setting-infiniband.c Loading commit data...
nm-setting-infiniband.h Loading commit data...
nm-setting-ip-config.c Loading commit data...
nm-setting-ip-config.h Loading commit data...
nm-setting-ip-tunnel.c Loading commit data...
nm-setting-ip-tunnel.h Loading commit data...
nm-setting-ip4-config.c Loading commit data...
nm-setting-ip4-config.h Loading commit data...
nm-setting-ip6-config.c Loading commit data...
nm-setting-ip6-config.h Loading commit data...
nm-setting-macsec.c Loading commit data...
nm-setting-macsec.h Loading commit data...
nm-setting-macvlan.c Loading commit data...
nm-setting-macvlan.h Loading commit data...
nm-setting-match.c Loading commit data...
nm-setting-match.h Loading commit data...
nm-setting-olpc-mesh.c Loading commit data...
nm-setting-olpc-mesh.h Loading commit data...
nm-setting-ovs-bridge.c Loading commit data...
nm-setting-ovs-bridge.h Loading commit data...
nm-setting-ovs-interface.c Loading commit data...
nm-setting-ovs-interface.h Loading commit data...
nm-setting-ovs-patch.c Loading commit data...
nm-setting-ovs-patch.h Loading commit data...
nm-setting-ovs-port.c Loading commit data...
nm-setting-ovs-port.h Loading commit data...
nm-setting-ppp.c Loading commit data...
nm-setting-ppp.h Loading commit data...
nm-setting-pppoe.c Loading commit data...
nm-setting-pppoe.h Loading commit data...
nm-setting-private.h Loading commit data...
nm-setting-proxy.c Loading commit data...
nm-setting-proxy.h Loading commit data...
nm-setting-serial.c Loading commit data...
nm-setting-serial.h Loading commit data...
nm-setting-sriov.c Loading commit data...
nm-setting-sriov.h Loading commit data...
nm-setting-tc-config.c Loading commit data...
nm-setting-tc-config.h Loading commit data...
nm-setting-team-port.c Loading commit data...
nm-setting-team-port.h Loading commit data...
nm-setting-team.c Loading commit data...
nm-setting-team.h Loading commit data...
nm-setting-tun.c Loading commit data...
nm-setting-tun.h Loading commit data...
nm-setting-user.c Loading commit data...
nm-setting-user.h Loading commit data...
nm-setting-vlan.c Loading commit data...
nm-setting-vlan.h Loading commit data...
nm-setting-vpn.c Loading commit data...
nm-setting-vpn.h Loading commit data...
nm-setting-vxlan.c Loading commit data...
nm-setting-vxlan.h Loading commit data...
nm-setting-wifi-p2p.c Loading commit data...
nm-setting-wifi-p2p.h Loading commit data...
nm-setting-wimax.c Loading commit data...
nm-setting-wimax.h Loading commit data...
nm-setting-wired.c Loading commit data...
nm-setting-wired.h Loading commit data...
nm-setting-wireguard.c Loading commit data...
nm-setting-wireguard.h Loading commit data...
nm-setting-wireless-security.c Loading commit data...
nm-setting-wireless-security.h Loading commit data...
nm-setting-wireless.c Loading commit data...
nm-setting-wireless.h Loading commit data...
nm-setting-wpan.c Loading commit data...
nm-setting-wpan.h Loading commit data...
nm-setting.c Loading commit data...
nm-setting.h Loading commit data...
nm-simple-connection.c Loading commit data...
nm-simple-connection.h Loading commit data...
nm-utils-private.h Loading commit data...
nm-utils.c Loading commit data...
nm-utils.h Loading commit data...
nm-version.h Loading commit data...
nm-vpn-dbus-interface.h Loading commit data...
nm-vpn-editor-plugin.c Loading commit data...
nm-vpn-editor-plugin.h Loading commit data...
nm-vpn-plugin-info.c Loading commit data...
nm-vpn-plugin-info.h Loading commit data...