NetworkManager/shared/n-acd
Thomas Haller c50ef0df3b shared: workaround -Wunused-but-set-variable warning with assertions
Usually, we don't want to build with NDEBUG (because disabling regular
assertions is an untested configuration). Still, when we do, we get
compiler warnings.

Non-debug builds break with a compiler warning:

  $ ccache cc -Ishared/a4d2686@@n-acd@sta -Ishared -I../shared -I../shared/c-siphash/src -I../shared/c-list/src -I../shared/c-rbtree/src -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Werror -std=gnu11 -fdata-sections -ffunction-sections -O2 -g -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -D_GNU_SOURCE -DSO_ATTACH_BPF=50 -std=c11 -Wno-pointer-arith -Wno-vla -MD -MQ 'shared/a4d2686@@n-acd@sta/n-acd_src_n-acd-probe.c.o' -MF 'shared/a4d2686@@n-acd@sta/n-acd_src_n-acd-probe.c.o.d' -o 'shared/a4d2686@@n-acd@sta/n-acd_src_n-acd-probe.c.o' -c ../shared/n-acd/src/n-acd-probe.c
  ../shared/n-acd/src/n-acd-probe.c: In function 'n_acd_probe_unlink':
  ../shared/n-acd/src/n-acd-probe.c:209:13: error: variable 'r' set but not used [-Werror=unused-but-set-variable]
           int r;
               ^

  $ cache cc -Ishared/a4d2686@@c-rbtree@sta -Ishared -I../shared -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Werror -std=gnu11 -fdata-sections -ffunction-sections -O2 -g -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -std=c11 -MD -MQ 'shared/a4d2686@@c-rbtree@sta/c-rbtree_src_c-rbtree.c.o' -MF 'shared/a4d2686@@c-rbtree@sta/c-rbtree_src_c-rbtree.c.o.d' -o 'shared/a4d2686@@c-rbtree@sta/c-rbtree_src_c-rbtree.c.o' -c ../shared/c-rbtree/src/c-rbtree.c
  ../shared/c-rbtree/src/c-rbtree.c: In function 'c_rbtree_move':
  ../shared/c-rbtree/src/c-rbtree.c:456:18: error: variable 't' set but not used [-Werror=unused-but-set-variable]
           CRBTree *t;
                    ^

https://github.com/nettools/n-acd/pull/6
https://github.com/c-util/c-rbtree/pull/3
2019-04-04 09:54:44 +02:00
..
.cherryci Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00
src shared: workaround -Wunused-but-set-variable warning with assertions 2019-04-04 09:54:44 +02:00
subprojects Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00
.editorconfig Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00
.gitmodules Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00
.travis.yml Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00
AUTHORS Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00
AUTHORS-ASL Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00
AUTHORS-LGPL Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00
LICENSE Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00
meson.build Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00
meson_options.txt Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00
NEWS Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00
README Merge commit '1361ede099f51cc29b478ebee6a736219ad74b97' into bg/n-acd-update 2018-09-18 15:15:02 +02:00

n-acd - IPv4 Address Conflict Detection

ABOUT:
        The n-acd project implements the IPv4 Address Conflict Detection
        standard as defined in RFC-5227. The state machine is implemented in a
        shared library and provides a stable ISO-C11 API. The implementation is
        linux-only and relies heavily on the API behavior of recent linux
        kernel releases.

DETAILS:
        https://nettools.github.io/n-acd

BUG REPORTS:
        https://github.com/nettools/n-acd/issues

GIT:
        git@github.com:nettools/n-acd.git
        https://github.com/nettools/n-acd.git

GITWEB:
        https://github.com/nettools/n-acd

MAILINGLIST:
        https://groups.google.com/forum/#!forum/nettools-devel

LICENSE:
        Apache Software License 2.0
        Lesser General Public License 2.1+
        See AUTHORS for details.

REQUIREMENTS:
        The requirements for n-acd are:

            Linux kernel >= 3.19
            libc (e.g., glibc >= 2.16)

        At build-time, the following software is required:

            meson >= 0.41
            pkg-config >= 0.29

INSTALL:
        The meson build-system is used for this project. Contact upstream
        documentation for detailed help. In most situations the following
        commands are sufficient to build and install from source:

            $ mkdir build
            $ cd build
            $ meson setup ..
            $ ninja
            $ meson test
            # ninja install

        For custom configuration options see meson_options.txt.