FreeRangeRouting Github Pull Request Testing

Build: #6377 was successful

Job: Static Analyzer (Clang) was successful

Job result summary

Completed
Duration
22 minutes
Flags
Custom revisionCustom build
Agent
clang0102.lab.netdef.org
Successful since
#4190 ()

Error summary

The build generated some errors. See the full build log for more details.

                          ^                   ~~~~~
pbrd/pbr_vty.c:540:3: error: address argument to bitwise atomic operation must be a pointer to integer ('_Atomic(uint32_t) *' invalid)
                DEBUG_MODE_SET(&pbr_dbg_event, mode, !no);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/debug.h:133:4: note: expanded from macro 'DEBUG_MODE_SET'
                        SET_FLAG_ATOMIC(&(name)->flags,                        \
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/zebra.h:527:4: note: expanded from macro 'SET_FLAG_ATOMIC'
        ((atomic_fetch_or_explicit(PV, (F), memory_order_seq_cst)))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/include/stdatomic.h:205:6: note: expanded from macro 'atomic_fetch_or_explicit'
                          __atomic_fetch_or ((PTR), (VAL), (MO))
                          ^                  ~~~~~
pbrd/pbr_vty.c:540:3: error: address argument to bitwise atomic operation must be a pointer to integer ('_Atomic(uint32_t) *' invalid)
                DEBUG_MODE_SET(&pbr_dbg_event, mode, !no);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/debug.h:136:4: note: expanded from macro 'DEBUG_MODE_SET'
                        UNSET_FLAG_ATOMIC(&(name)->flags,                      \
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/zebra.h:529:4: note: expanded from macro 'UNSET_FLAG_ATOMIC'
        ((atomic_fetch_and_explicit(PV, ~(F), memory_order_seq_cst)))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/include/stdatomic.h:215:6: note: expanded from macro 'atomic_fetch_and_explicit'
                          __atomic_fetch_and ((PTR), (VAL), (MO))
                          ^                   ~~~~~
8 errors generated.
pbrd/pbr_debug.c:49:3: error: address argument to bitwise atomic operation must be a pointer to integer ('_Atomic(uint32_t) *' invalid)
                DEBUG_FLAGS_SET(pbr_debugs[i], flags, set);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/debug.h:170:4: note: expanded from macro 'DEBUG_FLAGS_SET'
                        SET_FLAG_ATOMIC(&(name)->flags, (fl));                 \
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/zebra.h:527:4: note: expanded from macro 'SET_FLAG_ATOMIC'
        ((atomic_fetch_or_explicit(PV, (F), memory_order_seq_cst)))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/include/stdatomic.h:205:6: note: expanded from macro 'atomic_fetch_or_explicit'
                          __atomic_fetch_or ((PTR), (VAL), (MO))
                          ^                  ~~~~~
pbrd/pbr_debug.c:49:3: error: address argument to bitwise atomic operation must be a pointer to integer ('_Atomic(uint32_t) *' invalid)
                DEBUG_FLAGS_SET(pbr_debugs[i], flags, set);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/debug.h:172:4: note: expanded from macro 'DEBUG_FLAGS_SET'
                        UNSET_FLAG_ATOMIC(&(name)->flags, (fl));               \
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/zebra.h:529:4: note: expanded from macro 'UNSET_FLAG_ATOMIC'
        ((atomic_fetch_and_explicit(PV, ~(F), memory_order_seq_cst)))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/include/stdatomic.h:215:6: note: expanded from macro 'atomic_fetch_and_explicit'
                          __atomic_fetch_and ((PTR), (VAL), (MO))
                          ^                   ~~~~~
pbrd/pbr_debug.c:52:8: error: address argument to atomic operation must be a pointer to a trivially-copyable type ('_Atomic(unsigned int) *' invalid)
                if (!DEBUG_MODE_CHECK(pbr_debugs[i], DEBUG_MODE_ALL))
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/debug.h:108:2: note: expanded from macro 'DEBUG_MODE_CHECK'
        CHECK_FLAG_ATOMIC(&(name)->flags, (mode)&DEBUG_MODE_ALL)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/zebra.h:525:4: note: expanded from macro 'CHECK_FLAG_ATOMIC'
        ((atomic_load_explicit(PV, memory_order_seq_cst)) & (F))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/include/stdatomic.h:138:5: note: expanded from macro 'atomic_load_explicit'
    __atomic_load (__atomic_load_ptr, &__atomic_load_tmp, (MO));        \
    ^              ~~~~~~~~~~~~~~~~~
pbrd/pbr_debug.c:53:4: error: address argument to atomic operation must be a pointer to a trivially-copyable type ('_Atomic(unsigned int) *' invalid)
                        DEBUG_CLEAR(pbr_debugs[i]);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/debug.h:184:27: note: expanded from macro 'DEBUG_CLEAR'
#define DEBUG_CLEAR(name) RESET_FLAG_ATOMIC(&(name)->flags)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/zebra.h:531:4: note: expanded from macro 'RESET_FLAG_ATOMIC'
        ((atomic_store_explicit(PV, 0, memory_order_seq_cst)))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/include/stdatomic.h:126:5: note: expanded from macro 'atomic_store_explicit'
    __atomic_store (__atomic_store_ptr, &__atomic_store_tmp, (MO));     \
    ^               ~~~~~~~~~~~~~~~~~~
pbrd/pbr_debug.c:65:7: error: address argument to atomic operation must be a pointer to a trivially-copyable type ('_Atomic(unsigned int) *' invalid)
                if (DEBUG_MODE_CHECK(pbr_debugs[i], mode))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/debug.h:108:2: note: expanded from macro 'DEBUG_MODE_CHECK'
        CHECK_FLAG_ATOMIC(&(name)->flags, (mode)&DEBUG_MODE_ALL)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/zebra.h:525:4: note: expanded from macro 'CHECK_FLAG_ATOMIC'
        ((atomic_load_explicit(PV, memory_order_seq_cst)) & (F))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/include/stdatomic.h:138:5: note: expanded from macro 'atomic_load_explicit'
    __atomic_load (__atomic_load_ptr, &__atomic_load_tmp, (MO));        \
    ^              ~~~~~~~~~~~~~~~~~
5 errors generated.
zebra/zebra_vty.c:2483:2: error: address argument to atomic operation must be a pointer to a trivially-copyable type ('_Atomic(unsigned int) *' invalid)
        atomic_store_explicit(&zebrad.packets_to_process, packets,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/include/stdatomic.h:126:5: note: expanded from macro 'atomic_store_explicit'
    __atomic_store (__atomic_store_ptr, &__atomic_store_tmp, (MO));     \
    ^               ~~~~~~~~~~~~~~~~~~
zebra/zebra_vty.c:2497:2: error: address argument to atomic operation must be a pointer to a trivially-copyable type ('_Atomic(unsigned int) *' invalid)
        atomic_store_explicit(&zebrad.packets_to_process,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/include/stdatomic.h:126:5: note: expanded from macro 'atomic_store_explicit'
    __atomic_store (__atomic_store_ptr, &__atomic_store_tmp, (MO));     \
    ^               ~~~~~~~~~~~~~~~~~~
2 errors generated.