Skip to content

Instantly share code, notes, and snippets.

@risicle
Created July 9, 2023 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save risicle/c31ff376e68f6336b71bcf5e7f1c8431 to your computer and use it in GitHub Desktop.
Save risicle/c31ff376e68f6336b71bcf5e7f1c8431 to your computer and use it in GitHub Desktop.
unpacking sources
unpacking source archive /nix/store/ydb6n6fghhx32izg0pdk8x0bkrmnd61k-source
source root is source
patching sources
updateAutotoolsGnuConfigScriptsPhase
Updating Autotools / GNU config script to a newer upstream version: ./nng/extern/msquic/submodules/openssl/krb5/src/config/config.sub
Updating Autotools / GNU config script to a newer upstream version: ./nng/extern/msquic/submodules/openssl/krb5/src/config/config.guess
configuring
fixing cmake files...
cmake flags: -GNinja -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/share/doc/nanomq-nng -DCMAKE_INSTALL_INFODIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/include -DCMAKE_INSTALL_SBINDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/x7n44lfys59k5ajj9w1fkxw5391cnn5v-gcc-wrapper-12.3.0/bin/strip -DCMAKE_RANLIB=/nix/store/x7n44lfys59k5ajj9w1fkxw5391cnn5v-gcc-wrapper-12.3.0/bin/ranlib -DCMAKE_AR=/nix/store/x7n44lfys59k5ajj9w1fkxw5391cnn5v-gcc-wrapper-12.3.0/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2 -DBUILD_BENCH=ON -DBUILD_DDS_PROXY=ON -DBUILD_NANOMQ_CLI=ON -DBUILD_ZMQ_GATEWAY=ON -DENABLE_RULE_ENGINE=ON -DNNG_ENABLE_SQLITE=ON -DNNG_ENABLE_TLS=ON
-- The C compiler identification is GNU 12.3.0
-- The CXX compiler identification is GNU 12.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/x7n44lfys59k5ajj9w1fkxw5391cnn5v-gcc-wrapper-12.3.0/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/x7n44lfys59k5ajj9w1fkxw5391cnn5v-gcc-wrapper-12.3.0/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test NANO_HIDDEN_VISIBILITY
-- Performing Test NANO_HIDDEN_VISIBILITY - Success
-- NanoMQ versions --
-- Configuring for NanoMQ version 0.18.0
-- Build NanoMQ with ACL support --
-- MODE [Release] --
-- Configuring for NNG version 1.6.0-pre
-- Building static libs.
-- Performing Test NNG_HIDDEN_VISIBILITY
-- Performing Test NNG_HIDDEN_VISIBILITY - Success
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for strnlen
-- Looking for strnlen - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for lockf
-- Looking for lockf - found
-- Looking for flock
-- Looking for flock - found
-- Looking for getrandom
-- Looking for getrandom - found
-- Looking for arc4random_buf
-- Looking for arc4random_buf - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for sem_wait in pthread
-- Looking for sem_wait in pthread - found
-- Looking for pthread_atfork in pthread
-- Looking for pthread_atfork in pthread - found
-- Looking for pthread_set_name_np in pthread
-- Looking for pthread_set_name_np in pthread - not found
-- Looking for pthread_setname_np in pthread
-- Looking for pthread_setname_np in pthread - found
-- Looking for gethostbyname in nsl
-- Looking for gethostbyname in nsl - not found
-- Looking for socket in socket
-- Looking for socket in socket - not found
-- Looking for __atomic_load_1 in atomic
-- Looking for __atomic_load_1 in atomic - found
-- Looking for AF_UNIX
-- Looking for AF_UNIX - found
-- Looking for backtrace_symbols_fd
-- Looking for backtrace_symbols_fd - found
-- Performing Test NNG_HAVE_MSG_CONTROL
-- Performing Test NNG_HAVE_MSG_CONTROL - Success
-- Looking for eventfd
-- Looking for eventfd - found
-- Looking for kqueue
-- Looking for kqueue - not found
-- Looking for port_create
-- Looking for port_create - not found
-- Looking for epoll_create
-- Looking for epoll_create - found
-- Looking for epoll_create1
-- Looking for epoll_create1 - found
-- Looking for getpeereid
-- Looking for getpeereid - not found
-- Looking for SO_PEERCRED
-- Looking for SO_PEERCRED - found
-- Performing Test NNG_HAVE_SOCKPEERCRED
-- Performing Test NNG_HAVE_SOCKPEERCRED - Failed
-- Looking for LOCAL_PEERCRED
-- Looking for LOCAL_PEERCRED - not found
-- Looking for LOCAL_PEERPID
-- Looking for LOCAL_PEERPID - not found
-- Looking for getpeerucred
-- Looking for getpeerucred - not found
-- Looking for atomic_flag_test_and_set
-- Looking for atomic_flag_test_and_set - found
Check MQTT_QUIC_CLIENT support: OFF
CMake Warning at nng/src/supplemental/tls/mbedtls/CMakeLists.txt:11 (message):
************************************************************
Linking against Mbed TLS changes license terms (Apache 2.0).
Consult a lawyer and the license files for details.
************************************************************
-- Found mbedTLS: /nix/store/f7zf0i1hh613vrvzwbfrjwwk654dsrg8-mbedtls-3.4.0/lib/libmbedtls.so (found version "3.4.0")
-- Found UnixCommands: /nix/store/a7f7xfp9wyghf44yv6l6fv9dfw492hd3-bash-5.2-p15/bin/bash
-- Looking for nl_langinfo
-- Looking for nl_langinfo - found
-- Test zt disabled (unconfigured)
-- Found PkgConfig: /nix/store/s3i7nsvzwqkydvrkq92z962yj3bb55rz-pkg-config-wrapper-0.29.2/bin/pkg-config (found version "0.29.2")
-- Checking for module 'mysqlclient'
-- Found mysqlclient, version 3.2.5
Set default idl file path: /build/source/etc/idl/dds_type.idl
running /nix/store/5vfn3dkrfpn32hbbs3xk88rr1qj01r54-idl-serial-unstable-2023-03-29/bin/idl-serial-code-gen /build/source/etc/idl/dds_type.idl idl_convert /build/source/nanomq_cli/dds2mqtt 2>&1
*** buffer overflow detected ***: terminated
-- Found OpenSSL: /nix/store/ix7cb1isdcdl4gq9hl4pdk6gyc4wrk14-openssl-3.0.9/lib/libcrypto.so (found version "3.0.9")
Install prefix: /nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2
-- Configuring done (8.2s)
-- Generating done (0.2s)
CMake Warning:
Manually-specified variables were not used by the project:
BUILD_TESTING
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
-- Build files have been written to: /build/source/build
cmake: enabled parallel building
cmake: enabled parallel installing
building
build flags: -j2
[1/514] Building C object nng/CMakeFiles/nng.dir/src/nng_legacy.c.o
[2/514] Building C object nng/CMakeFiles/nng.dir/src/core/aio.c.o
[3/514] Building C object nng/CMakeFiles/nng.dir/src/core/device.c.o
[4/514] Building C object nng/CMakeFiles/nng.dir/src/core/dialer.c.o
[5/514] Building C object nng/CMakeFiles/nng.dir/src/nng.c.o
[6/514] Building C object nng/CMakeFiles/nng.dir/src/core/file.c.o
[7/514] Building C object nng/CMakeFiles/nng.dir/src/core/init.c.o
[8/514] Building C object nng/CMakeFiles/nng.dir/src/core/list.c.o
[9/514] Building C object nng/CMakeFiles/nng.dir/src/core/idhash.c.o
[10/514] Building C object nng/CMakeFiles/nng.dir/src/core/listener.c.o
[11/514] Building C object nng/CMakeFiles/nng.dir/src/core/lmq.c.o
[12/514] Building C object nng/CMakeFiles/nng.dir/src/core/msgqueue.c.o
[13/514] Building C object nng/CMakeFiles/nng.dir/src/core/message.c.o
[14/514] Building C object nng/CMakeFiles/nng.dir/src/core/pollable.c.o
[15/514] Building C object nng/CMakeFiles/nng.dir/src/core/options.c.o
[16/514] Building C object nng/CMakeFiles/nng.dir/src/core/panic.c.o
[17/514] Building C object nng/CMakeFiles/nng.dir/src/core/reap.c.o
[18/514] Building C object nng/CMakeFiles/nng.dir/src/core/pipe.c.o
[19/514] Building C object nng/CMakeFiles/nng.dir/src/core/stats.c.o
[20/514] Building C object nng/CMakeFiles/nng.dir/src/core/socket.c.o
[21/514] Building C object nng/CMakeFiles/nng.dir/src/core/strs.c.o
[22/514] Building C object nng/CMakeFiles/nng.dir/src/core/stream.c.o
[23/514] Building C object nng/CMakeFiles/nng.dir/src/core/taskq.c.o
[24/514] Building C object nng/CMakeFiles/nng.dir/src/core/tcp.c.o
[25/514] Building C object nng/CMakeFiles/nng.dir/src/core/timer.c.o
[26/514] Building C object nng/CMakeFiles/nng.dir/src/core/thread.c.o
[27/514] Building C object nng/CMakeFiles/nng.dir/src/core/zmalloc.c.o
[28/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_alloc.c.o
[29/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_atomic.c.o
[30/514] Building C object nng/CMakeFiles/nng.dir/src/core/url.c.o
[31/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_clock.c.o
[32/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_debug.c.o
[33/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_ipcconn.c.o
[34/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_file.c.o
[35/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_ipcdial.c.o
[36/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_pipe.c.o
[37/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_ipclisten.c.o
[38/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_sockaddr.c.o
[39/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_resolv_gai.c.o
[40/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_tcpdial.c.o
[41/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_tcpconn.c.o
[42/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_tcplisten.c.o
[43/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_thread.c.o
[44/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_udp.c.o
[45/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_rand_arc4random.c.o
[46/514] Building C object nng/CMakeFiles/nng.dir/src/platform/posix/posix_pollq_epoll.c.o
[47/514] Building C object nng/CMakeFiles/nng.dir/src/mqtt/protocol/mqtt/mqtt_client.c.o
/build/source/nng/src/mqtt/protocol/mqtt/mqtt_client.c: In function 'mqtt_ctx_send':
/build/source/nng/src/mqtt/protocol/mqtt/mqtt_client.c:954:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
954 | if (qos == 0) {
| ^
/build/source/nng/src/mqtt/protocol/mqtt/mqtt_client.c:957:9: note: here
957 | case NNG_MQTT_SUBSCRIBE:
| ^~~~
[48/514] Building C object nng/CMakeFiles/nng.dir/src/compat/nanomsg/nn.c.o
[49/514] Building C object nng/CMakeFiles/nng.dir/src/mqtt/protocol/mqtt/sqlite_handler.c.o
[50/514] Building C object nng/CMakeFiles/nng.dir/src/mqtt/protocol/mqtt/mqttv5_client.c.o
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c: In function 'mqtt_timer_cb':
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c:539:20: warning: unused variable 'pid' [-Wunused-variable]
539 | uint16_t pid = p->rid;
| ^~~
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c:538:20: warning: unused variable 'aio' [-Wunused-variable]
538 | nni_aio * aio;
| ^~~
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c:537:20: warning: unused variable 'msg' [-Wunused-variable]
537 | nni_msg * msg;
| ^~~
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c: In function 'mqtt_ctx_send':
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c:955:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
955 | if (qos == 0) {
| ^
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c:958:9: note: here
958 | case NNG_MQTT_SUBSCRIBE:
| ^~~~
[51/514] Building C object nng/CMakeFiles/nng.dir/src/mqtt/transport/tcp/mqtt_tcp.c.o
/build/source/nng/src/mqtt/transport/tcp/mqtt_tcp.c: In function 'mqtt_tcptran_pipe_send_start':
/build/source/nng/src/mqtt/transport/tcp/mqtt_tcp.c:895:79: warning: operation on '*header' may be undefined [-Wsequence-point]
895 | p->qosmax == 1 ? (*header &= 0XF9) & (*header |= 0X02) : *header;
| ~~~~~~~~~^~~~~~~~
/build/source/nng/src/mqtt/transport/tcp/mqtt_tcp.c: In function 'mqtt_tcptran_ep_connect':
/build/source/nng/src/mqtt/transport/tcp/mqtt_tcp.c:1496:23: warning: operand of '?:' changes signedness from 'nni_duration' {aka 'int'} to 'uint32_t' {aka 'unsigned int'} due to unsignedness of other operand [-Wsign-compare]
1496 | : ep->backoff;
| ^~~~~~~~~~~
[52/514] Building C object nng/CMakeFiles/nng.dir/src/mqtt/transport/tls/mqtt_tls.c.o
/build/source/nng/src/mqtt/transport/tls/mqtt_tls.c: In function 'mqtts_tcptran_pipe_send_start':
/build/source/nng/src/mqtt/transport/tls/mqtt_tls.c:886:78: warning: operation on '*header' may be undefined [-Wsequence-point]
886 | p->qosmax == 1? (*header &= 0XF9) & (*header |= 0X02):*header;
| ~~~~~~~~~^~~~~~~~
[53/514] Building C object nng/CMakeFiles/nng.dir/src/mqtt/transport.c.o
[54/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/bus0/bus.c.o
[55/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/pair0/pair.c.o
[56/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/pair1/pair1_poly.c.o
[57/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/pair1/pair.c.o
[58/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/pipeline0/push.c.o
[59/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/pipeline0/pull.c.o
[60/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/pubsub0/pub.c.o
[61/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/pubsub0/sub.c.o
[62/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/pubsub0/xsub.c.o
[63/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/reqrep0/req.c.o
[64/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/reqrep0/xreq.c.o
[65/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/reqrep0/rep.c.o
[66/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/reqrep0/xrep.c.o
[67/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/survey0/xsurvey.c.o
[68/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/survey0/survey.c.o
[69/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/survey0/xrespond.c.o
[70/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/survey0/respond.c.o
[71/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/mqtt/nmq_mqtt.c.o
[72/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/mqtt/mqtt_parser.c.o
/build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c: In function 'copyn_str':
/build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c:288:79: warning: the comparison will always evaluate as 'false' for the pointer operand in 'src + (sizetype)*pos' must not be NULL [-Waddress]
288 | if ((dest = nng_alloc(*str_len + 1)) == NULL || (src + (*pos) == NULL)) {
| ^~
In file included from /build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c:14:
/build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c: In function 'nano_msg_notify_disconnect':
/build/source/nng/include/nng/protocol/mqtt/mqtt_parser.h:15:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'nni_time' {aka 'long unsigned int'} [-Wformat=]
15 | "{\"username\":\"%s\"," \
| ^~~~~~~~~~~~~~~~~~~~~~~
/build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c:1263:29: note: in expansion of macro 'DISCONNECT_MSG'
1263 | snprintf(buff, 256, DISCONNECT_MSG, (char *) cparam->username.body,
| ^~~~~~~~~~~~~~
/build/source/nng/include/nng/protocol/mqtt/mqtt_parser.h:16:20: note: format string is defined here
16 | "\"ts\":%llu,\"reason_code\":\"%x\",\"client_id\":\"%s\"}"
| ~~~^
| |
| long long unsigned int
| %lu
/build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c: In function 'nano_msg_notify_connect':
/build/source/nng/include/nng/protocol/mqtt/mqtt_parser.h:19:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'nni_time' {aka 'long unsigned int'} [-Wformat=]
19 | "{\"username\":\"%s\", " \
| ^~~~~~~~~~~~~~~~~~~~~~~~
/build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c:1282:29: note: in expansion of macro 'CONNECT_MSG'
1282 | snprintf(buff, 256, CONNECT_MSG, cparam->username.body,
| ^~~~~~~~~~~
/build/source/nng/include/nng/protocol/mqtt/mqtt_parser.h:20:20: note: format string is defined here
20 | "\"ts\":%llu,\"proto_name\":\"%s\",\"keepalive\":%d,\"return_code\":" \
| ~~~^
| |
| long long unsigned int
| %lu
[73/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/mqtt/auth_http.c.o
[74/514] Building C object nng/CMakeFiles/nng.dir/src/sp/transport/inproc/inproc.c.o
[75/514] Building C object nng/CMakeFiles/nng.dir/src/sp/transport/ipc/ipc.c.o
[76/514] Building C object nng/CMakeFiles/nng.dir/src/sp/transport/tcp/tcp.c.o
[77/514] Building C object nng/CMakeFiles/nng.dir/src/sp/transport/tls/tls.c.o
[78/514] Building C object nng/CMakeFiles/nng.dir/src/sp/transport/ws/websocket.c.o
[79/514] Building C object nng/CMakeFiles/nng.dir/src/sp/transport/mqtts/broker_tls.c.o
[80/514] Building C object nng/CMakeFiles/nng.dir/src/sp/transport/mqtt/broker_tcp.c.o
[81/514] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol.c.o
[82/514] Building C object nng/CMakeFiles/nng.dir/src/sp/transport.c.o
[83/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/base64/base64.c.o
[84/514] Building C object nng/CMakeFiles/nng.dir/src/sp/transport/mqttws/nmq_websocket.c.o
[85/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/http/http_public.c.o
[86/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/http/http_client.c.o
[87/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/http/http_chunk.c.o
[88/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/http/http_conn.c.o
[89/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/http/http_schemes.c.o
[90/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/http/http_msg.c.o
[91/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/sha1/sha1.c.o
[92/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/tls/mbedtls/tls.c.o
[93/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/http/http_server.c.o
[94/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/util/options.c.o
[95/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/tls/tls_common.c.o
[96/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/util/platform.c.o
[97/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/mqtt/mqtt_public.c.o
[98/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/websocket/websocket.c.o
[99/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/mqtt/mqtt_msg.c.o
[100/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/mqtt/mqtt_qos_db_api.c.o
[101/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/mqtt/mqtt_codec.c.o
/build/source/nng/src/supplemental/mqtt/mqtt_codec.c:4070:26: warning: 'proto_ops' defined but not used [-Wunused-variable]
4070 | static nni_proto_msg_ops proto_ops = {
| ^~~~~~~~~
[102/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/mqtt/mqtt_qos_db.c.o
/build/source/nng/src/supplemental/mqtt/mqtt_qos_db.c: In function 'nni_mqtt_msg_serialize':
/build/source/nng/src/supplemental/mqtt/mqtt_qos_db.c:1255:63: warning: unused parameter 'proto_ver' [-Wunused-parameter]
1255 | nni_mqtt_msg_serialize(nni_msg *msg, size_t *out_len, uint8_t proto_ver)
| ~~~~~~~~^~~~~~~~~
[103/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/base64.c.o
[104/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/cJSON.c.o
[105/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/cmd.c.o
[106/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/rule.c.o
[107/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/acl_conf.c.o
[108/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/conf.c.o
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'conf_update_var':
/build/source/nng/src/supplemental/nanolib/conf.c:131:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=]
131 | snprintf(varstr, 50, "%llu", *(uint64_t *) var);
| ~~~^ ~~~~~~~~~~~~~~~~~
| | |
| | uint64_t {aka long unsigned int}
| long long unsigned int
| %lu
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'print_auth_http_conf':
/build/source/nng/src/supplemental/nanolib/conf.c:979:36: warning: unused variable 'auth' [-Wunused-variable]
979 | conf_auth_http_req auth = auth_http->auth_req;
| ^~~~
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'conf_rule_sqlite_parse':
/build/source/nng/src/supplemental/nanolib/conf.c:1669:17: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
1669 | return;
| ^~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c:1662:1: note: declared here
1662 | conf_rule_sqlite_parse(conf_rule *cr, char *path)
| ^~~~~~~~~~~~~~~~~~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c:1679:17: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
1679 | return;
| ^~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c:1662:1: note: declared here
1662 | conf_rule_sqlite_parse(conf_rule *cr, char *path)
| ^~~~~~~~~~~~~~~~~~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'conf_rule_parse':
/build/source/nng/src/supplemental/nanolib/conf.c:1873:56: warning: passing argument 1 of 'conf_rule_sqlite_parse' from incompatible pointer type [-Wincompatible-pointer-types]
1873 | conf_rule_sqlite_parse(&cr, value);
| ^~~
| |
| conf_rule **
/build/source/nng/src/supplemental/nanolib/conf.c:1662:35: note: expected 'conf_rule *' but argument is of type 'conf_rule **'
1662 | conf_rule_sqlite_parse(conf_rule *cr, char *path)
| ~~~~~~~~~~~^~
/build/source/nng/src/supplemental/nanolib/conf.c:1895:55: warning: passing argument 1 of 'conf_rule_repub_parse' from incompatible pointer type [-Wincompatible-pointer-types]
1895 | conf_rule_repub_parse(&cr, value);
| ^~~
| |
| conf_rule **
/build/source/nng/src/supplemental/nanolib/conf.c:1353:34: note: expected 'conf_rule *' but argument is of type 'conf_rule **'
1353 | conf_rule_repub_parse(conf_rule *cr, char *path)
| ~~~~~~~~~~~^~
/build/source/nng/src/supplemental/nanolib/conf.c:1917:55: warning: passing argument 1 of 'conf_rule_mysql_parse' from incompatible pointer type [-Wincompatible-pointer-types]
1917 | conf_rule_mysql_parse(&cr, value);
| ^~~
| |
| conf_rule **
/build/source/nng/src/supplemental/nanolib/conf.c:1533:34: note: expected 'conf_rule *' but argument is of type 'conf_rule **'
1533 | conf_rule_mysql_parse(conf_rule *cr, char *path)
| ~~~~~~~~~~~^~
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'get_time':
/build/source/nng/src/supplemental/nanolib/conf.c:3205:34: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'uint64_t *' {aka 'long unsigned int *'} [-Wformat=]
3205 | if (2 == sscanf(str, "%lld%c", &s, &unit)) {
| ~~~^ ~~
| | |
| | uint64_t * {aka long unsigned int *}
| long long int *
| %ld
/build/source/nng/src/supplemental/nanolib/conf.c: At top level:
/build/source/nng/src/supplemental/nanolib/conf.c:66:1: warning: 'strtrim' defined but not used [-Wunused-function]
66 | strtrim(char *str, size_t len)
| ^~~~~~~
In function 'conf_rule_sqlite_parse',
inlined from 'conf_rule_parse' at /build/source/nng/src/supplemental/nanolib/conf.c:1873:5,
inlined from 'conf_parse' at /build/source/nng/src/supplemental/nanolib/conf.c:608:2:
/build/source/nng/src/supplemental/nanolib/conf.c:1720:35: warning: array subscript 'conf_rule[0]' is partly outside array bounds of 'conf_rule[0]' [-Warray-bounds]
1720 | cr->rules[cvector_size(cr->rules) - 1]
| ~~^~~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'conf_parse':
/build/source/nng/src/supplemental/nanolib/conf.c:1832:20: note: object 'cr' of size 8
1832 | conf_rule *cr = rule;
| ^~
In function 'conf_rule_sqlite_parse',
inlined from 'conf_rule_parse' at /build/source/nng/src/supplemental/nanolib/conf.c:1873:5,
inlined from 'conf_parse' at /build/source/nng/src/supplemental/nanolib/conf.c:608:2:
/build/source/nng/src/supplemental/nanolib/conf.c:1726:35: warning: array subscript 'conf_rule[0]' is partly outside array bounds of 'conf_rule[0]' [-Warray-bounds]
1726 | cr->rules[cvector_size(cr->rules) - 1]
| ~~^~~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'conf_parse':
/build/source/nng/src/supplemental/nanolib/conf.c:1832:20: note: object 'cr' of size 8
1832 | conf_rule *cr = rule;
| ^~
In function 'conf_rule_sqlite_parse',
inlined from 'conf_rule_parse' at /build/source/nng/src/supplemental/nanolib/conf.c:1873:5,
inlined from 'conf_parse' at /build/source/nng/src/supplemental/nanolib/conf.c:608:2:
/build/source/nng/src/supplemental/nanolib/conf.c:1686:39: warning: array subscript 'conf_rule[0]' is partly outside array bounds of 'conf_rule[0]' [-Warray-bounds]
1686 | cr->sqlite_db = value;
| ~~~~~~~~~~~~~~^~~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'conf_parse':
/build/source/nng/src/supplemental/nanolib/conf.c:1832:20: note: object 'cr' of size 8
1832 | conf_rule *cr = rule;
| ^~
[109/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/conf_ver2.c.o
/build/source/nng/src/supplemental/nanolib/conf_ver2.c: In function 'json_buffer_from_fp':
/build/source/nng/src/supplemental/nanolib/conf_ver2.c:1119:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
1119 | fread(buf, sizeof(buf), 1, fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[110/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/env.c.o
[111/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/file.c.o
[112/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/hash_table.c.o
[113/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/mqtt_db.c.o
/build/source/nng/src/supplemental/nanolib/mqtt_db.c: In function 'collect_retain_well':
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1091:16: warning: returning 'void **' from a function with incompatible return type 'nng_msg **' [-Wincompatible-pointer-types]
1091 | return vec;
| ^~~
/build/source/nng/src/supplemental/nanolib/mqtt_db.c: In function 'collect_retains':
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1121:29: warning: assignment to 'void **' from incompatible pointer type 'nng_msg **' [-Wincompatible-pointer-types]
1121 | vec = collect_retain_well(vec, node_t);
| ^
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1180:16: warning: returning 'void **' from a function with incompatible return type 'nng_msg **' [-Wincompatible-pointer-types]
1180 | return vec;
| ^~~
/build/source/nng/src/supplemental/nanolib/mqtt_db.c: In function 'dbtree_find_retain':
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1206:40: warning: passing argument 1 of 'collect_retains' from incompatible pointer type [-Wincompatible-pointer-types]
1206 | rets = collect_retains(rets, nodes, &nodes_t, topic_queue);
| ^~~~
| |
| nng_msg **
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1103:24: note: expected 'void **' but argument is of type 'nng_msg **'
1103 | collect_retains(void **vec, dbtree_node **nodes,
| ~~~~~~~^~~
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1211:40: warning: passing argument 1 of 'collect_retains' from incompatible pointer type [-Wincompatible-pointer-types]
1211 | rets = collect_retains(rets, nodes_t, &nodes, topic_queue);
| ^~~~
| |
| nng_msg **
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1103:24: note: expected 'void **' but argument is of type 'nng_msg **'
1103 | collect_retains(void **vec, dbtree_node **nodes,
| ~~~~~~~^~~
[114/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/scanner.c.o
[115/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/parser.c.o
parser.y: In function 'yyerror':
parser.y:170:29: warning: unused parameter 'jso' [-Wunused-parameter]
[116/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/hocon.c.o
[117/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/log.c.o
[118/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/nanolib/utils.c.o
[119/514] Building C object nng/CMakeFiles/nng_testing.dir/src/nng.c.o
[120/514] Building C object nng/CMakeFiles/nng_testing.dir/src/nng_legacy.c.o
[121/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/aio.c.o
[122/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/device.c.o
[123/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/dialer.c.o
[124/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/file.c.o
[125/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/idhash.c.o
[126/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/init.c.o
[127/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/list.c.o
[128/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/listener.c.o
[129/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/lmq.c.o
[130/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/message.c.o
[131/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/msgqueue.c.o
[132/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/options.c.o
[133/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/pollable.c.o
[134/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/panic.c.o
[135/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/pipe.c.o
[136/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/reap.c.o
[137/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/socket.c.o
[138/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/stats.c.o
[139/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/stream.c.o
[140/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/strs.c.o
[141/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/taskq.c.o
[142/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/tcp.c.o
[143/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/thread.c.o
[144/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/timer.c.o
[145/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/url.c.o
[146/514] Building C object nng/CMakeFiles/nng_testing.dir/src/core/zmalloc.c.o
[147/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_alloc.c.o
[148/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_atomic.c.o
[149/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_clock.c.o
[150/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_debug.c.o
[151/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_file.c.o
[152/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_ipcconn.c.o
[153/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_ipcdial.c.o
[154/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_ipclisten.c.o
[155/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_pipe.c.o
[156/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_resolv_gai.c.o
[157/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_sockaddr.c.o
[158/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_tcpconn.c.o
[159/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_tcpdial.c.o
[160/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_tcplisten.c.o
[161/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_thread.c.o
[162/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_udp.c.o
[163/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_pollq_epoll.c.o
[164/514] Building C object nng/CMakeFiles/nng_testing.dir/src/platform/posix/posix_rand_arc4random.c.o
[165/514] Building C object nng/CMakeFiles/nng_testing.dir/src/compat/nanomsg/nn.c.o
[166/514] Building C object nng/CMakeFiles/nng_testing.dir/src/mqtt/protocol/mqtt/mqtt_client.c.o
/build/source/nng/src/mqtt/protocol/mqtt/mqtt_client.c: In function 'mqtt_ctx_send':
/build/source/nng/src/mqtt/protocol/mqtt/mqtt_client.c:954:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
954 | if (qos == 0) {
| ^
/build/source/nng/src/mqtt/protocol/mqtt/mqtt_client.c:957:9: note: here
957 | case NNG_MQTT_SUBSCRIBE:
| ^~~~
[167/514] Building C object nng/CMakeFiles/nng_testing.dir/src/mqtt/protocol/mqtt/mqttv5_client.c.o
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c: In function 'mqtt_timer_cb':
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c:539:20: warning: unused variable 'pid' [-Wunused-variable]
539 | uint16_t pid = p->rid;
| ^~~
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c:538:20: warning: unused variable 'aio' [-Wunused-variable]
538 | nni_aio * aio;
| ^~~
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c:537:20: warning: unused variable 'msg' [-Wunused-variable]
537 | nni_msg * msg;
| ^~~
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c: In function 'mqtt_ctx_send':
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c:955:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
955 | if (qos == 0) {
| ^
/build/source/nng/src/mqtt/protocol/mqtt/mqttv5_client.c:958:9: note: here
958 | case NNG_MQTT_SUBSCRIBE:
| ^~~~
[168/514] Building C object nng/CMakeFiles/nng_testing.dir/src/mqtt/protocol/mqtt/sqlite_handler.c.o
[169/514] Building C object nng/CMakeFiles/nng_testing.dir/src/mqtt/transport/tcp/mqtt_tcp.c.o
/build/source/nng/src/mqtt/transport/tcp/mqtt_tcp.c: In function 'mqtt_tcptran_pipe_send_start':
/build/source/nng/src/mqtt/transport/tcp/mqtt_tcp.c:895:79: warning: operation on '*header' may be undefined [-Wsequence-point]
895 | p->qosmax == 1 ? (*header &= 0XF9) & (*header |= 0X02) : *header;
| ~~~~~~~~~^~~~~~~~
/build/source/nng/src/mqtt/transport/tcp/mqtt_tcp.c: In function 'mqtt_tcptran_ep_connect':
/build/source/nng/src/mqtt/transport/tcp/mqtt_tcp.c:1496:23: warning: operand of '?:' changes signedness from 'nni_duration' {aka 'int'} to 'uint32_t' {aka 'unsigned int'} due to unsignedness of other operand [-Wsign-compare]
1496 | : ep->backoff;
| ^~~~~~~~~~~
[170/514] Building C object nng/CMakeFiles/nng_testing.dir/src/mqtt/transport/tls/mqtt_tls.c.o
/build/source/nng/src/mqtt/transport/tls/mqtt_tls.c: In function 'mqtts_tcptran_pipe_send_start':
/build/source/nng/src/mqtt/transport/tls/mqtt_tls.c:886:78: warning: operation on '*header' may be undefined [-Wsequence-point]
886 | p->qosmax == 1? (*header &= 0XF9) & (*header |= 0X02):*header;
| ~~~~~~~~~^~~~~~~~
[171/514] Building C object nng/CMakeFiles/nng_testing.dir/src/mqtt/transport.c.o
[172/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/bus0/bus.c.o
[173/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/pair0/pair.c.o
[174/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/pair1/pair.c.o
[175/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/pair1/pair1_poly.c.o
[176/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/pipeline0/push.c.o
[177/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/pipeline0/pull.c.o
[178/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/pubsub0/pub.c.o
[179/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/pubsub0/sub.c.o
[180/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/pubsub0/xsub.c.o
[181/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/reqrep0/req.c.o
[182/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/reqrep0/xreq.c.o
[183/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/reqrep0/rep.c.o
[184/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/reqrep0/xrep.c.o
[185/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/survey0/survey.c.o
[186/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/survey0/xsurvey.c.o
[187/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/survey0/respond.c.o
[188/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/survey0/xrespond.c.o
[189/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/mqtt/mqtt_parser.c.o
/build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c: In function 'copyn_str':
/build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c:288:79: warning: the comparison will always evaluate as 'false' for the pointer operand in 'src + (sizetype)*pos' must not be NULL [-Waddress]
288 | if ((dest = nng_alloc(*str_len + 1)) == NULL || (src + (*pos) == NULL)) {
| ^~
In file included from /build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c:14:
/build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c: In function 'nano_msg_notify_disconnect':
/build/source/nng/include/nng/protocol/mqtt/mqtt_parser.h:15:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'nni_time' {aka 'long unsigned int'} [-Wformat=]
15 | "{\"username\":\"%s\"," \
| ^~~~~~~~~~~~~~~~~~~~~~~
/build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c:1263:29: note: in expansion of macro 'DISCONNECT_MSG'
1263 | snprintf(buff, 256, DISCONNECT_MSG, (char *) cparam->username.body,
| ^~~~~~~~~~~~~~
/build/source/nng/include/nng/protocol/mqtt/mqtt_parser.h:16:20: note: format string is defined here
16 | "\"ts\":%llu,\"reason_code\":\"%x\",\"client_id\":\"%s\"}"
| ~~~^
| |
| long long unsigned int
| %lu
/build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c: In function 'nano_msg_notify_connect':
/build/source/nng/include/nng/protocol/mqtt/mqtt_parser.h:19:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'nni_time' {aka 'long unsigned int'} [-Wformat=]
19 | "{\"username\":\"%s\", " \
| ^~~~~~~~~~~~~~~~~~~~~~~~
/build/source/nng/src/sp/protocol/mqtt/mqtt_parser.c:1282:29: note: in expansion of macro 'CONNECT_MSG'
1282 | snprintf(buff, 256, CONNECT_MSG, cparam->username.body,
| ^~~~~~~~~~~
/build/source/nng/include/nng/protocol/mqtt/mqtt_parser.h:20:20: note: format string is defined here
20 | "\"ts\":%llu,\"proto_name\":\"%s\",\"keepalive\":%d,\"return_code\":" \
| ~~~^
| |
| long long unsigned int
| %lu
[190/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/mqtt/nmq_mqtt.c.o
[191/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol/mqtt/auth_http.c.o
[192/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/transport/inproc/inproc.c.o
[193/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/transport/ipc/ipc.c.o
[194/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/transport/tcp/tcp.c.o
[195/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/transport/tls/tls.c.o
[196/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/transport/ws/websocket.c.o
[197/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/transport/mqtts/broker_tls.c.o
[198/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/transport/mqtt/broker_tcp.c.o
[199/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/transport/mqttws/nmq_websocket.c.o
[200/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/protocol.c.o
[201/514] Building C object nng/CMakeFiles/nng_testing.dir/src/sp/transport.c.o
[202/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/base64/base64.c.o
[203/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/http/http_public.c.o
[204/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/http/http_client.c.o
[205/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/http/http_chunk.c.o
[206/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/http/http_conn.c.o
[207/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/http/http_msg.c.o
[208/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/http/http_schemes.c.o
[209/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/http/http_server.c.o
[210/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/sha1/sha1.c.o
[211/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/tls/mbedtls/tls.c.o
[212/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/tls/tls_common.c.o
[213/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/util/options.c.o
[214/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/util/platform.c.o
[215/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/websocket/websocket.c.o
[216/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/mqtt/mqtt_public.c.o
[217/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/mqtt/mqtt_codec.c.o
/build/source/nng/src/supplemental/mqtt/mqtt_codec.c:4070:26: warning: 'proto_ops' defined but not used [-Wunused-variable]
4070 | static nni_proto_msg_ops proto_ops = {
| ^~~~~~~~~
[218/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/mqtt/mqtt_msg.c.o
[219/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/mqtt/mqtt_qos_db_api.c.o
[220/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/mqtt/mqtt_qos_db.c.o
/build/source/nng/src/supplemental/mqtt/mqtt_qos_db.c: In function 'nni_mqtt_msg_serialize':
/build/source/nng/src/supplemental/mqtt/mqtt_qos_db.c:1255:63: warning: unused parameter 'proto_ver' [-Wunused-parameter]
1255 | nni_mqtt_msg_serialize(nni_msg *msg, size_t *out_len, uint8_t proto_ver)
| ~~~~~~~~^~~~~~~~~
[221/514] Building C object nng/CMakeFiles/nng.dir/src/supplemental/sqlite/sqlite3.c.o
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'sqlite3ResultStrAccum':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:30528:51: note: in expansion of macro 'SQLITE_DYNAMIC'
30528 | sqlite3_result_text(pCtx, p->zText, p->nChar, SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'sqlite3ErrorWithMsg':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:32761:54: note: in expansion of macro 'SQLITE_DYNAMIC'
32761 | sqlite3ValueSetStr(db->pErr, -1, z, SQLITE_UTF8, SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'sqlite3VdbeMemSetStr':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:78997:15: note: in expansion of macro 'SQLITE_DYNAMIC'
78997 | if( xDel==SQLITE_DYNAMIC ){
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'valueFromExpr':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:79409:55: note: in expansion of macro 'SQLITE_DYNAMIC'
79409 | sqlite3ValueSetStr(pVal, -1, zVal, SQLITE_UTF8, SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:79462:29: note: in expansion of macro 'SQLITE_DYNAMIC'
79462 | 0, SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'printfFunc':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:121347:25: note: in expansion of macro 'SQLITE_DYNAMIC'
121347 | SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'quoteFunc':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:122174:23: note: in expansion of macro 'SQLITE_DYNAMIC'
122174 | SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'sqlite3GenerateColumnNames':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:136244:58: note: in expansion of macro 'SQLITE_DYNAMIC'
136244 | sqlite3VdbeSetColName(v, i, COLNAME_NAME, zName, SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:136251:52: note: in expansion of macro 'SQLITE_DYNAMIC'
136251 | sqlite3VdbeSetColName(v, i, COLNAME_NAME, z, SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
[222/514] Linking C static library nng/libnng.a
[223/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/base64.c.o
[224/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/cJSON.c.o
[225/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/cmd.c.o
[226/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/rule.c.o
[227/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/acl_conf.c.o
[228/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/conf.c.o
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'conf_update_var':
/build/source/nng/src/supplemental/nanolib/conf.c:131:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=]
131 | snprintf(varstr, 50, "%llu", *(uint64_t *) var);
| ~~~^ ~~~~~~~~~~~~~~~~~
| | |
| | uint64_t {aka long unsigned int}
| long long unsigned int
| %lu
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'print_auth_http_conf':
/build/source/nng/src/supplemental/nanolib/conf.c:979:36: warning: unused variable 'auth' [-Wunused-variable]
979 | conf_auth_http_req auth = auth_http->auth_req;
| ^~~~
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'conf_rule_sqlite_parse':
/build/source/nng/src/supplemental/nanolib/conf.c:1669:17: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
1669 | return;
| ^~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c:1662:1: note: declared here
1662 | conf_rule_sqlite_parse(conf_rule *cr, char *path)
| ^~~~~~~~~~~~~~~~~~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c:1679:17: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
1679 | return;
| ^~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c:1662:1: note: declared here
1662 | conf_rule_sqlite_parse(conf_rule *cr, char *path)
| ^~~~~~~~~~~~~~~~~~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'conf_rule_parse':
/build/source/nng/src/supplemental/nanolib/conf.c:1873:56: warning: passing argument 1 of 'conf_rule_sqlite_parse' from incompatible pointer type [-Wincompatible-pointer-types]
1873 | conf_rule_sqlite_parse(&cr, value);
| ^~~
| |
| conf_rule **
/build/source/nng/src/supplemental/nanolib/conf.c:1662:35: note: expected 'conf_rule *' but argument is of type 'conf_rule **'
1662 | conf_rule_sqlite_parse(conf_rule *cr, char *path)
| ~~~~~~~~~~~^~
/build/source/nng/src/supplemental/nanolib/conf.c:1895:55: warning: passing argument 1 of 'conf_rule_repub_parse' from incompatible pointer type [-Wincompatible-pointer-types]
1895 | conf_rule_repub_parse(&cr, value);
| ^~~
| |
| conf_rule **
/build/source/nng/src/supplemental/nanolib/conf.c:1353:34: note: expected 'conf_rule *' but argument is of type 'conf_rule **'
1353 | conf_rule_repub_parse(conf_rule *cr, char *path)
| ~~~~~~~~~~~^~
/build/source/nng/src/supplemental/nanolib/conf.c:1917:55: warning: passing argument 1 of 'conf_rule_mysql_parse' from incompatible pointer type [-Wincompatible-pointer-types]
1917 | conf_rule_mysql_parse(&cr, value);
| ^~~
| |
| conf_rule **
/build/source/nng/src/supplemental/nanolib/conf.c:1533:34: note: expected 'conf_rule *' but argument is of type 'conf_rule **'
1533 | conf_rule_mysql_parse(conf_rule *cr, char *path)
| ~~~~~~~~~~~^~
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'get_time':
/build/source/nng/src/supplemental/nanolib/conf.c:3205:34: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'uint64_t *' {aka 'long unsigned int *'} [-Wformat=]
3205 | if (2 == sscanf(str, "%lld%c", &s, &unit)) {
| ~~~^ ~~
| | |
| | uint64_t * {aka long unsigned int *}
| long long int *
| %ld
/build/source/nng/src/supplemental/nanolib/conf.c: At top level:
/build/source/nng/src/supplemental/nanolib/conf.c:66:1: warning: 'strtrim' defined but not used [-Wunused-function]
66 | strtrim(char *str, size_t len)
| ^~~~~~~
In function 'conf_rule_sqlite_parse',
inlined from 'conf_rule_parse' at /build/source/nng/src/supplemental/nanolib/conf.c:1873:5,
inlined from 'conf_parse' at /build/source/nng/src/supplemental/nanolib/conf.c:608:2:
/build/source/nng/src/supplemental/nanolib/conf.c:1720:35: warning: array subscript 'conf_rule[0]' is partly outside array bounds of 'conf_rule[0]' [-Warray-bounds]
1720 | cr->rules[cvector_size(cr->rules) - 1]
| ~~^~~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'conf_parse':
/build/source/nng/src/supplemental/nanolib/conf.c:1832:20: note: object 'cr' of size 8
1832 | conf_rule *cr = rule;
| ^~
In function 'conf_rule_sqlite_parse',
inlined from 'conf_rule_parse' at /build/source/nng/src/supplemental/nanolib/conf.c:1873:5,
inlined from 'conf_parse' at /build/source/nng/src/supplemental/nanolib/conf.c:608:2:
/build/source/nng/src/supplemental/nanolib/conf.c:1726:35: warning: array subscript 'conf_rule[0]' is partly outside array bounds of 'conf_rule[0]' [-Warray-bounds]
1726 | cr->rules[cvector_size(cr->rules) - 1]
| ~~^~~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'conf_parse':
/build/source/nng/src/supplemental/nanolib/conf.c:1832:20: note: object 'cr' of size 8
1832 | conf_rule *cr = rule;
| ^~
In function 'conf_rule_sqlite_parse',
inlined from 'conf_rule_parse' at /build/source/nng/src/supplemental/nanolib/conf.c:1873:5,
inlined from 'conf_parse' at /build/source/nng/src/supplemental/nanolib/conf.c:608:2:
/build/source/nng/src/supplemental/nanolib/conf.c:1686:39: warning: array subscript 'conf_rule[0]' is partly outside array bounds of 'conf_rule[0]' [-Warray-bounds]
1686 | cr->sqlite_db = value;
| ~~~~~~~~~~~~~~^~~~~~~
/build/source/nng/src/supplemental/nanolib/conf.c: In function 'conf_parse':
/build/source/nng/src/supplemental/nanolib/conf.c:1832:20: note: object 'cr' of size 8
1832 | conf_rule *cr = rule;
| ^~
[229/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/conf_ver2.c.o
/build/source/nng/src/supplemental/nanolib/conf_ver2.c: In function 'json_buffer_from_fp':
/build/source/nng/src/supplemental/nanolib/conf_ver2.c:1119:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
1119 | fread(buf, sizeof(buf), 1, fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[230/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/env.c.o
[231/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/file.c.o
[232/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/hash_table.c.o
[233/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/mqtt_db.c.o
/build/source/nng/src/supplemental/nanolib/mqtt_db.c: In function 'collect_retain_well':
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1091:16: warning: returning 'void **' from a function with incompatible return type 'nng_msg **' [-Wincompatible-pointer-types]
1091 | return vec;
| ^~~
/build/source/nng/src/supplemental/nanolib/mqtt_db.c: In function 'collect_retains':
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1121:29: warning: assignment to 'void **' from incompatible pointer type 'nng_msg **' [-Wincompatible-pointer-types]
1121 | vec = collect_retain_well(vec, node_t);
| ^
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1180:16: warning: returning 'void **' from a function with incompatible return type 'nng_msg **' [-Wincompatible-pointer-types]
1180 | return vec;
| ^~~
/build/source/nng/src/supplemental/nanolib/mqtt_db.c: In function 'dbtree_find_retain':
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1206:40: warning: passing argument 1 of 'collect_retains' from incompatible pointer type [-Wincompatible-pointer-types]
1206 | rets = collect_retains(rets, nodes, &nodes_t, topic_queue);
| ^~~~
| |
| nng_msg **
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1103:24: note: expected 'void **' but argument is of type 'nng_msg **'
1103 | collect_retains(void **vec, dbtree_node **nodes,
| ~~~~~~~^~~
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1211:40: warning: passing argument 1 of 'collect_retains' from incompatible pointer type [-Wincompatible-pointer-types]
1211 | rets = collect_retains(rets, nodes_t, &nodes, topic_queue);
| ^~~~
| |
| nng_msg **
/build/source/nng/src/supplemental/nanolib/mqtt_db.c:1103:24: note: expected 'void **' but argument is of type 'nng_msg **'
1103 | collect_retains(void **vec, dbtree_node **nodes,
| ~~~~~~~^~~
[234/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/scanner.c.o
[235/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/parser.c.o
parser.y: In function 'yyerror':
parser.y:170:29: warning: unused parameter 'jso' [-Wunused-parameter]
[236/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/hocon.c.o
[237/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/log.c.o
[238/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/nanolib/utils.c.o
[239/514] Building C object nng/CMakeFiles/nng_testing.dir/src/testing/certs.c.o
[240/514] Building C object nng/CMakeFiles/nng_testing.dir/src/testing/marry.c.o
[241/514] Building C object nng/CMakeFiles/nng_testing.dir/src/testing/streams.c.o
[242/514] Building C object nng/CMakeFiles/nng_testing.dir/src/testing/util.c.o
[243/514] Building C object nng/src/core/CMakeFiles/aio_test.dir/aio_test.c.o
[244/514] Building C object nng/src/core/CMakeFiles/buf_size_test.dir/buf_size_test.c.o
[245/514] Building C object nng/src/core/CMakeFiles/errors_test.dir/errors_test.c.o
[246/514] Building C object nng/src/core/CMakeFiles/id_test.dir/id_test.c.o
[247/514] Building C object nng/src/core/CMakeFiles/list_test.dir/list_test.c.o
[248/514] Building C object nng/src/core/CMakeFiles/message_test.dir/message_test.c.o
[249/514] Building C object nng/src/core/CMakeFiles/reconnect_test.dir/reconnect_test.c.o
[250/514] Building C object nng/src/core/CMakeFiles/sock_test.dir/sock_test.c.o
[251/514] Building C object nng/src/core/CMakeFiles/stats_test.dir/stats_test.c.o
[252/514] Building C object nng/src/core/CMakeFiles/url_test.dir/url_test.c.o
[253/514] Building C object nng/src/platform/CMakeFiles/platform_test.dir/platform_test.c.o
[254/514] Building C object nng/src/platform/CMakeFiles/resolver_test.dir/resolver_test.c.o
[255/514] Building C object nng/src/platform/posix/CMakeFiles/posix_ipcwinsec_test.dir/posix_ipcwinsec_test.c.o
[256/514] Building C object nng/src/compat/nanomsg/CMakeFiles/compat_tcp_test.dir/compat_tcp_test.c.o
[257/514] Building C object nng/src/sp/protocol/bus0/CMakeFiles/bus_test.dir/bus_test.c.o
[258/514] Building C object nng/src/sp/protocol/pair0/CMakeFiles/pair0_test.dir/pair0_test.c.o
[259/514] Building C object nng/src/sp/protocol/pair1/CMakeFiles/pair1_test.dir/pair1_test.c.o
[260/514] Building C object nng/src/sp/protocol/pair1/CMakeFiles/pair1_poly_test.dir/pair1_poly_test.c.o
[261/514] Building C object nng/src/sp/protocol/pipeline0/CMakeFiles/pull_test.dir/pull_test.c.o
[262/514] Building C object nng/src/sp/protocol/pipeline0/CMakeFiles/push_test.dir/push_test.c.o
[263/514] Building C object nng/src/sp/protocol/pubsub0/CMakeFiles/pub_test.dir/pub_test.c.o
[264/514] Building C object nng/src/sp/protocol/pubsub0/CMakeFiles/sub_test.dir/sub_test.c.o
[265/514] Building C object nng/src/sp/protocol/pubsub0/CMakeFiles/xsub_test.dir/xsub_test.c.o
[266/514] Building C object nng/src/sp/protocol/reqrep0/CMakeFiles/req_test.dir/req_test.c.o
[267/514] Building C object nng/src/sp/protocol/reqrep0/CMakeFiles/rep_test.dir/rep_test.c.o
[268/514] Building C object nng/src/sp/protocol/reqrep0/CMakeFiles/xrep_test.dir/xrep_test.c.o
[269/514] Building C object nng/src/sp/protocol/reqrep0/CMakeFiles/xreq_test.dir/xreq_test.c.o
[270/514] Building C object nng/src/sp/protocol/survey0/CMakeFiles/respond_test.dir/respond_test.c.o
[271/514] Building C object nng/src/sp/protocol/survey0/CMakeFiles/survey_test.dir/survey_test.c.o
[272/514] Building C object nng/src/sp/protocol/survey0/CMakeFiles/xrespond_test.dir/xrespond_test.c.o
[273/514] Building C object nng/src/sp/protocol/survey0/CMakeFiles/xsurvey_test.dir/xsurvey_test.c.o
[274/514] Building C object nng/CMakeFiles/nng_testing.dir/src/supplemental/sqlite/sqlite3.c.o
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'sqlite3ResultStrAccum':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:30528:51: note: in expansion of macro 'SQLITE_DYNAMIC'
30528 | sqlite3_result_text(pCtx, p->zText, p->nChar, SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'sqlite3ErrorWithMsg':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:32761:54: note: in expansion of macro 'SQLITE_DYNAMIC'
32761 | sqlite3ValueSetStr(db->pErr, -1, z, SQLITE_UTF8, SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'sqlite3VdbeMemSetStr':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:78997:15: note: in expansion of macro 'SQLITE_DYNAMIC'
78997 | if( xDel==SQLITE_DYNAMIC ){
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'valueFromExpr':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:79409:55: note: in expansion of macro 'SQLITE_DYNAMIC'
79409 | sqlite3ValueSetStr(pVal, -1, zVal, SQLITE_UTF8, SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:79462:29: note: in expansion of macro 'SQLITE_DYNAMIC'
79462 | 0, SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'printfFunc':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:121347:25: note: in expansion of macro 'SQLITE_DYNAMIC'
121347 | SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'quoteFunc':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:122174:23: note: in expansion of macro 'SQLITE_DYNAMIC'
122174 | SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c: In function 'sqlite3GenerateColumnNames':
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:136244:58: note: in expansion of macro 'SQLITE_DYNAMIC'
136244 | sqlite3VdbeSetColName(v, i, COLNAME_NAME, zName, SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
/build/source/nng/src/supplemental/sqlite/sqlite3.c:14524:27: warning: cast between incompatible function types from 'void * (*)(sqlite3 *)' to 'void (*)(void *)' [-Wcast-function-type]
14524 | #define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3OomFault)
| ^
/build/source/nng/src/supplemental/sqlite/sqlite3.c:136251:52: note: in expansion of macro 'SQLITE_DYNAMIC'
136251 | sqlite3VdbeSetColName(v, i, COLNAME_NAME, z, SQLITE_DYNAMIC);
| ^~~~~~~~~~~~~~
[275/514] Linking C static library nng/libnng_testing.a
[276/514] Building C object nng/src/sp/protocol/mqtt/CMakeFiles/mqtt_parser_test.dir/mqtt_parser_test.c.o
[277/514] Linking C executable nng/src/core/aio_test
[278/514] Linking C executable nng/src/core/buf_size_test
[279/514] Linking C executable nng/src/core/errors_test
[280/514] Linking C executable nng/src/core/list_test
[281/514] Linking C executable nng/src/core/id_test
[282/514] Linking C executable nng/src/core/reconnect_test
[283/514] Linking C executable nng/src/core/message_test
[284/514] Linking C executable nng/src/core/sock_test
[285/514] Linking C executable nng/src/core/stats_test
[286/514] Linking C executable nng/src/core/url_test
[287/514] Linking C executable nng/src/platform/platform_test
[288/514] Linking C executable nng/src/platform/resolver_test
[289/514] Linking C executable nng/src/platform/posix/posix_ipcwinsec_test
[290/514] Linking C executable nng/src/compat/nanomsg/compat_tcp_test
[291/514] Linking C executable nng/src/sp/protocol/bus0/bus_test
[292/514] Linking C executable nng/src/sp/protocol/pair0/pair0_test
[293/514] Linking C executable nng/src/sp/protocol/pair1/pair1_test
[294/514] Linking C executable nng/src/sp/protocol/pair1/pair1_poly_test
[295/514] Linking C executable nng/src/sp/protocol/pipeline0/push_test
[296/514] Linking C executable nng/src/sp/protocol/pipeline0/pull_test
[297/514] Linking C executable nng/src/sp/protocol/pubsub0/pub_test
[298/514] Linking C executable nng/src/sp/protocol/pubsub0/sub_test
[299/514] Linking C executable nng/src/sp/protocol/pubsub0/xsub_test
[300/514] Linking C executable nng/src/sp/protocol/reqrep0/req_test
[301/514] Linking C executable nng/src/sp/protocol/reqrep0/rep_test
[302/514] Linking C executable nng/src/sp/protocol/reqrep0/xrep_test
[303/514] Linking C executable nng/src/sp/protocol/reqrep0/xreq_test
[304/514] Linking C executable nng/src/sp/protocol/survey0/respond_test
[305/514] Linking C executable nng/src/sp/protocol/survey0/survey_test
[306/514] Linking C executable nng/src/sp/protocol/survey0/xsurvey_test
[307/514] Linking C executable nng/src/sp/protocol/survey0/xrespond_test
[308/514] Linking C executable nng/src/sp/protocol/mqtt/mqtt_parser_test
[309/514] Building C object nng/src/sp/transport/tcp/CMakeFiles/tcp_test.dir/tcp_test.c.o
[310/514] Linking C executable nng/src/sp/transport/tcp/tcp_test
[311/514] Building C object nng/src/sp/transport/ipc/CMakeFiles/ipc_test.dir/ipc_test.c.o
[312/514] Linking C executable nng/src/sp/transport/ipc/ipc_test
[313/514] Building C object nng/src/sp/transport/ws/CMakeFiles/ws_test.dir/ws_test.c.o
[314/514] Linking C executable nng/src/sp/transport/ws/ws_test
[315/514] Building C object nng/src/supplemental/base64/CMakeFiles/base64_test.dir/base64_test.c.o
[316/514] Linking C executable nng/src/supplemental/base64/base64_test
[317/514] Building C object nng/src/supplemental/sha1/CMakeFiles/sha1_test.dir/sha1_test.c.o
[318/514] Building C object nng/src/supplemental/tls/CMakeFiles/tls_test.dir/tls_test.c.o
[319/514] Linking C executable nng/src/supplemental/sha1/sha1_test
[320/514] Linking C executable nng/src/supplemental/tls/tls_test
[321/514] Building C object nng/src/supplemental/websocket/CMakeFiles/wssfile_test.dir/wssfile_test.c.o
[322/514] Linking C executable nng/src/supplemental/websocket/wssfile_test
[323/514] Building C object nng/src/supplemental/websocket/CMakeFiles/websocket_test.dir/websocket_test.c.o
[324/514] Linking C executable nng/src/supplemental/websocket/websocket_test
[325/514] Building C object nng/src/supplemental/mqtt/CMakeFiles/mqtt_qos_db_test.dir/mqtt_qos_db_test.c.o
[326/514] Linking C executable nng/src/supplemental/mqtt/mqtt_qos_db_test
[327/514] Building C object nng/src/supplemental/mqtt/CMakeFiles/mqtt_test.dir/mqtt_test.c.o
[328/514] Linking C executable nng/src/supplemental/mqtt/mqtt_test
[329/514] Building C object nng/src/supplemental/sqlite/CMakeFiles/sqlite3_test.dir/sqlite3_test.c.o
[330/514] Linking C executable nng/src/supplemental/sqlite/sqlite3_test
[331/514] Building C object nng/src/supplemental/nanolib/CMakeFiles/hash_test.dir/hash_test.c.o
[332/514] Linking C executable nng/src/supplemental/nanolib/hash_test
[333/514] Building C object nng/src/supplemental/nanolib/CMakeFiles/dbtree_test.dir/dbtree_test.c.o
[334/514] Linking C executable nng/src/supplemental/nanolib/dbtree_test
[335/514] Building C object nng/src/tools/nngcat/CMakeFiles/nngcat.dir/nngcat.c.o
[336/514] Building C object nng/src/tools/perf/CMakeFiles/remote_lat.dir/perf.c.o
[337/514] Linking C executable nng/src/tools/nngcat/nngcat
[338/514] Linking C executable nng/src/tools/perf/remote_lat
[339/514] Building C object nng/src/tools/perf/CMakeFiles/local_lat.dir/perf.c.o
[340/514] Building C object nng/src/tools/perf/CMakeFiles/local_thr.dir/perf.c.o
[341/514] Linking C executable nng/src/tools/perf/local_lat
[342/514] Linking C executable nng/src/tools/perf/local_thr
[343/514] Building C object nng/src/tools/perf/CMakeFiles/remote_thr.dir/perf.c.o
[344/514] Linking C executable nng/src/tools/perf/remote_thr
[345/514] Building C object nng/src/tools/perf/CMakeFiles/inproc_thr.dir/perf.c.o
[346/514] Linking C executable nng/src/tools/perf/inproc_thr
[347/514] Building C object nng/src/tools/perf/CMakeFiles/inproc_lat.dir/perf.c.o
[348/514] Linking C executable nng/src/tools/perf/inproc_lat
[349/514] Building C object nng/src/tools/perf/CMakeFiles/pubdrop.dir/pubdrop.c.o
[350/514] Building C object nng/tests/CMakeFiles/device.dir/device.c.o
In file included from /build/source/nng/tests/device.c:17:
/build/source/nng/tests/device.c: In function 'conveyMainImpl':
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:314:14: note: in expansion of macro 'ConveyTest'
314 | #define Test ConveyTest
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/device.c:46:17: note: in expansion of macro 'Convey'
46 | Convey("We cannot create cooked mode device", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:314:14: note: in expansion of macro 'ConveyTest'
314 | #define Test ConveyTest
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/device.c:52:17: note: in expansion of macro 'Convey'
52 | Convey("We can create a PAIRv1 device", {
| ^~~~~~
[351/514] Linking C executable nng/src/tools/perf/pubdrop
[352/514] Building C object nng/tests/CMakeFiles/device.dir/convey.c.o
[353/514] Building C object nng/tests/CMakeFiles/files.dir/files.c.o
In file included from /build/source/nng/tests/files.c:11:
/build/source/nng/tests/files.c: In function 'conveyMainImpl':
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/files.c:141:9: note: in expansion of macro 'Convey'
141 | Convey("We can create a pair of files", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/files.c:234:9: note: in expansion of macro 'Convey'
234 | Convey("Zero length files work", {
| ^~~~~~
[354/514] Linking C executable nng/tests/device
[355/514] Building C object nng/tests/CMakeFiles/files.dir/convey.c.o
[356/514] Linking C executable nng/tests/files
[357/514] Building C object nng/tests/CMakeFiles/httpclient.dir/httpclient.c.o
In file included from /build/source/nng/tests/httpclient.c:26:
/build/source/nng/tests/trantest.h: In function 'trantest_mqtt_sub_pub':
/build/source/nng/tests/trantest.h:664:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
664 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:663:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
663 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'trantest_mqttv5_sub_pub':
/build/source/nng/tests/trantest.h:701:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
701 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:700:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
700 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
In file included from /build/source/nng/tests/httpclient.c:27:
/build/source/nng/tests/trantest.h: In function 'decode_sub_msg':
/build/source/nng/tests/trantest.h:848:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
848 | if (bpos < remaining_len - vpos) {
| ^
/build/source/nng/tests/trantest.h: In function 'decode_unsub_msg':
/build/source/nng/tests/trantest.h:1006:34: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
1006 | if (len_of_topic != -1) {
| ^~
/build/source/nng/tests/httpclient.c: In function 'conveyMainImpl':
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/httpclient.c:38:9: note: in expansion of macro 'Convey'
38 | Convey("Given a TCP connection to example.com", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/httpclient.c:116:9: note: in expansion of macro 'Convey'
116 | Convey("Given a client", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/httpclient.c:236:9: note: in expansion of macro 'Convey'
236 | Convey("Given a client (chunked)", {
| ^~~~~~
[358/514] Building C object nng/tests/CMakeFiles/httpclient.dir/convey.c.o
[359/514] Linking C executable nng/tests/httpclient
[360/514] Building C object nng/tests/CMakeFiles/httpserver.dir/convey.c.o
[361/514] Building C object nng/tests/CMakeFiles/inproc.dir/inproc.c.o
In file included from /build/source/nng/tests/inproc.c:11:
/build/source/nng/tests/trantest.h: In function 'trantest_mqtt_sub_pub':
/build/source/nng/tests/trantest.h:664:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
664 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:663:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
663 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'trantest_mqttv5_sub_pub':
/build/source/nng/tests/trantest.h:701:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
701 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:700:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
700 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
In file included from /build/source/nng/tests/inproc.c:12:
/build/source/nng/tests/trantest.h: In function 'decode_sub_msg':
/build/source/nng/tests/trantest.h:848:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
848 | if (bpos < remaining_len - vpos) {
| ^
/build/source/nng/tests/trantest.h: In function 'decode_unsub_msg':
/build/source/nng/tests/trantest.h:1006:34: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
1006 | if (len_of_topic != -1) {
| ^~
[362/514] Building C object nng/tests/CMakeFiles/httpserver.dir/httpserver.c.o
In file included from /build/source/nng/tests/trantest.h:21,
from /build/source/nng/tests/httpserver.c:18:
/build/source/nng/tests/trantest.h: In function 'trantest_mqtt_sub_pub':
/build/source/nng/tests/trantest.h:664:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
664 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:663:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
663 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'trantest_mqttv5_sub_pub':
/build/source/nng/tests/trantest.h:701:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
701 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:700:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
700 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'decode_sub_msg':
/build/source/nng/tests/trantest.h:848:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
848 | if (bpos < remaining_len - vpos) {
| ^
/build/source/nng/tests/trantest.h: In function 'decode_unsub_msg':
/build/source/nng/tests/trantest.h:1006:34: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
1006 | if (len_of_topic != -1) {
| ^~
/build/source/nng/tests/httpserver.c: In function 'conveyMainImpl':
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/httpserver.c:188:9: note: in expansion of macro 'Convey'
188 | Convey("We can start an HTTP server", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/httpserver.c:287:9: note: in expansion of macro 'Convey'
287 | Convey("Directory serving works (root)", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/httpserver.c:489:9: note: in expansion of macro 'Convey'
489 | Convey("Directory serving works", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/httpserver.c:692:9: note: in expansion of macro 'Convey'
692 | Convey("Multiple tree handlers works", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/httpserver.c:787:9: note: in expansion of macro 'Convey'
787 | Convey("Custom POST handler works", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/httpserver.c:858:9: note: in expansion of macro 'Convey'
858 | Convey("Redirect handler works", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/httpserver.c:977:9: note: in expansion of macro 'Convey'
977 | Convey("Root tree handler works", {
| ^~~~~~
[363/514] Linking C executable nng/tests/httpserver
[364/514] Building C object nng/tests/CMakeFiles/inproc.dir/convey.c.o
[365/514] Linking C executable nng/tests/inproc
[366/514] Building C object nng/tests/CMakeFiles/ipc.dir/convey.c.o
[367/514] Building C object nng/tests/CMakeFiles/ipc.dir/ipc.c.o
In file included from /build/source/nng/tests/ipc.c:24:
/build/source/nng/tests/trantest.h: In function 'trantest_mqtt_sub_pub':
/build/source/nng/tests/trantest.h:664:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
664 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:663:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
663 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'trantest_mqttv5_sub_pub':
/build/source/nng/tests/trantest.h:701:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
701 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:700:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
700 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
In file included from /build/source/nng/tests/ipc.c:25:
/build/source/nng/tests/trantest.h: In function 'decode_sub_msg':
/build/source/nng/tests/trantest.h:848:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
848 | if (bpos < remaining_len - vpos) {
| ^
/build/source/nng/tests/trantest.h: In function 'decode_unsub_msg':
/build/source/nng/tests/trantest.h:1006:34: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
1006 | if (len_of_topic != -1) {
| ^~
[368/514] Building C object nng/tests/CMakeFiles/ipcsupp.dir/ipcsupp.c.o
In file included from /build/source/nng/tests/ipcsupp.c:16:
/build/source/nng/tests/ipcsupp.c: In function 'conveyMainImpl':
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/ipcsupp.c:22:9: note: in expansion of macro 'Convey'
22 | Convey("We can create a dialer and listener", {
| ^~~~~~
/build/source/nng/tests/ipcsupp.c:44:45: warning: variable 'c1' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
44 | nng_stream *c1 = NULL;
| ^~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/ipcsupp.c:22:9: note: in expansion of macro 'Convey'
22 | Convey("We can create a dialer and listener", {
| ^~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/ipcsupp.c:37:17: note: in expansion of macro 'Convey'
37 | Convey("Listener listens", {
| ^~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/ipcsupp.c:40:25: note: in expansion of macro 'Convey'
40 | Convey("We can dial it", {
| ^~~~~~
[369/514] Linking C executable nng/tests/ipc
[370/514] Building C object nng/tests/CMakeFiles/ipcsupp.dir/convey.c.o
[371/514] Linking C executable nng/tests/ipcsupp
[372/514] Building C object nng/tests/CMakeFiles/multistress.dir/convey.c.o
[373/514] Building C object nng/tests/CMakeFiles/multistress.dir/multistress.c.o
/build/source/nng/tests/multistress.c: In function 'conveyMainImpl':
/build/source/nng/tests/multistress.c:768:1: warning: 'nng_closeall' is deprecated [-Wdeprecated-declarations]
768 | Main({
| ^~~~
In file included from /build/source/nng/tests/multistress.c:15:
/build/source/nng/include/nng/nng.h:1372:15: note: declared here
1372 | NNG_DECL void nng_closeall(void) NNG_DEPRECATED;
| ^~~~~~~~~~~~
[374/514] Linking C executable nng/tests/multistress
[375/514] Building C object nng/tests/CMakeFiles/nonblock.dir/nonblock.c.o
[376/514] Building C object nng/tests/CMakeFiles/options.dir/options.c.o
[377/514] Building C object nng/tests/CMakeFiles/nonblock.dir/convey.c.o
[378/514] Linking C executable nng/tests/nonblock
[379/514] Building C object nng/tests/CMakeFiles/options.dir/convey.c.o
[380/514] Linking C executable nng/tests/options
[381/514] Building C object nng/tests/CMakeFiles/pipe.dir/pipe.c.o
[382/514] Building C object nng/tests/CMakeFiles/pollfd.dir/pollfd.c.o
In file included from /build/source/nng/tests/pollfd.c:38:
/build/source/nng/tests/pollfd.c: In function 'conveyMainImpl':
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/pollfd.c:42:9: note: in expansion of macro 'Convey'
42 | Convey("Given a connected pair of sockets", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/pollfd.c:116:9: note: in expansion of macro 'Convey'
116 | Convey("We cannot get a send FD for PULL", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/pollfd.c:124:9: note: in expansion of macro 'Convey'
124 | Convey("We cannot get a recv FD for PUSH", {
| ^~~~~~
[383/514] Building C object nng/tests/CMakeFiles/pipe.dir/convey.c.o
[384/514] Linking C executable nng/tests/pipe
[385/514] Building C object nng/tests/CMakeFiles/pollfd.dir/convey.c.o
[386/514] Building C object nng/tests/CMakeFiles/scalability.dir/scalability.c.o
[387/514] Linking C executable nng/tests/pollfd
[388/514] Building C object nng/tests/CMakeFiles/synch.dir/synch.c.o
[389/514] Building C object nng/tests/CMakeFiles/scalability.dir/convey.c.o
[390/514] Linking C executable nng/tests/scalability
[391/514] Building C object nng/tests/CMakeFiles/synch.dir/convey.c.o
[392/514] Linking C executable nng/tests/synch
[393/514] Building C object nng/tests/CMakeFiles/tls.dir/convey.c.o
[394/514] Building C object nng/tests/CMakeFiles/tcpsupp.dir/tcpsupp.c.o
In file included from /build/source/nng/tests/tcpsupp.c:15:
/build/source/nng/tests/tcpsupp.c: In function 'conveyMainImpl':
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tcpsupp.c:19:9: note: in expansion of macro 'Convey'
19 | Convey("We can create a dialer and listener", {
| ^~~~~~
/build/source/nng/tests/tcpsupp.c:52:45: warning: variable 'c1' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
52 | nng_stream *c1 = NULL;
| ^~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tcpsupp.c:19:9: note: in expansion of macro 'Convey'
19 | Convey("We can create a dialer and listener", {
| ^~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tcpsupp.c:28:17: note: in expansion of macro 'Convey'
28 | Convey("Listener listens (wildcard)", {
| ^~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tcpsupp.c:48:25: note: in expansion of macro 'Convey'
48 | Convey("We can dial it", {
| ^~~~~~
[395/514] Building C object nng/tests/CMakeFiles/tcpsupp.dir/convey.c.o
[396/514] Linking C executable nng/tests/tcpsupp
[397/514] Building C object nng/tests/CMakeFiles/tls.dir/tls.c.o
In file included from /build/source/nng/tests/tls.c:22:
/build/source/nng/tests/trantest.h: In function 'trantest_mqtt_sub_pub':
/build/source/nng/tests/trantest.h:664:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
664 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:663:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
663 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'trantest_mqttv5_sub_pub':
/build/source/nng/tests/trantest.h:701:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
701 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:700:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
700 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
In file included from /build/source/nng/tests/tls.c:24:
/build/source/nng/tests/trantest.h: In function 'decode_sub_msg':
/build/source/nng/tests/trantest.h:848:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
848 | if (bpos < remaining_len - vpos) {
| ^
/build/source/nng/tests/trantest.h: In function 'decode_unsub_msg':
/build/source/nng/tests/trantest.h:1006:34: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
1006 | if (len_of_topic != -1) {
| ^~
/build/source/nng/tests/tls.c: In function 'conveyMainImpl':
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tls.c:292:9: note: in expansion of macro 'Convey'
292 | Convey("We cannot connect to wild cards", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tls.c:303:9: note: in expansion of macro 'Convey'
303 | Convey("We can bind to wild card", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tls.c:356:9: note: in expansion of macro 'Convey'
356 | Convey("Malformed TLS addresses do not panic", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tls.c:380:9: note: in expansion of macro 'Convey'
380 | Convey("We can use local interface to connect", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tls.c:404:9: note: in expansion of macro 'Convey'
404 | Convey("Botched local interfaces fail reasonably", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tls.c:413:9: note: in expansion of macro 'Convey'
413 | Convey("Can't specify address that isn't ours", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tls.c:452:9: note: in expansion of macro 'Convey'
452 | Convey("No verify works", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tls.c:497:9: note: in expansion of macro 'Convey'
497 | Convey("Valid verify works", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tls.c:546:9: note: in expansion of macro 'Convey'
546 | Convey("No delay option", {
| ^~~~~~
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tls.c:596:9: note: in expansion of macro 'Convey'
596 | Convey("Keepalive option", {
| ^~~~~~
[398/514] Linking C executable nng/tests/tls
[399/514] Building C object nng/tests/CMakeFiles/tcp.dir/tcp.c.o
In file included from /build/source/nng/tests/tcp.c:19:
/build/source/nng/tests/trantest.h: In function 'trantest_mqtt_sub_pub':
/build/source/nng/tests/trantest.h:664:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
664 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:663:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
663 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'trantest_mqttv5_sub_pub':
/build/source/nng/tests/trantest.h:701:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
701 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:700:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
700 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
In file included from /build/source/nng/tests/tcp.c:21:
/build/source/nng/tests/trantest.h: In function 'decode_sub_msg':
/build/source/nng/tests/trantest.h:848:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
848 | if (bpos < remaining_len - vpos) {
| ^
/build/source/nng/tests/trantest.h: In function 'decode_unsub_msg':
/build/source/nng/tests/trantest.h:1006:34: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
1006 | if (len_of_topic != -1) {
| ^~
[400/514] Building C object nng/tests/CMakeFiles/tcp.dir/convey.c.o
[401/514] Linking C executable nng/tests/tcp
[402/514] Building C object nng/tests/CMakeFiles/mqtt_tcp.dir/mqtt_tcp.c.o
In file included from /build/source/nng/tests/mqtt_tcp.c:19:
/build/source/nng/tests/trantest.h: In function 'trantest_mqtt_sub_pub':
/build/source/nng/tests/trantest.h:664:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
664 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:663:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
663 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'trantest_mqttv5_sub_pub':
/build/source/nng/tests/trantest.h:701:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
701 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:700:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
700 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
In file included from /build/source/nng/tests/mqtt_tcp.c:21:
/build/source/nng/tests/trantest.h: In function 'decode_sub_msg':
/build/source/nng/tests/trantest.h:848:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
848 | if (bpos < remaining_len - vpos) {
| ^
/build/source/nng/tests/trantest.h: In function 'decode_unsub_msg':
/build/source/nng/tests/trantest.h:1006:34: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
1006 | if (len_of_topic != -1) {
| ^~
[403/514] Building C object nng/tests/CMakeFiles/mqtt_tcp.dir/convey.c.o
[404/514] Linking C executable nng/tests/mqtt_tcp
[405/514] Building C object nng/tests/CMakeFiles/mqtt_broker_tcp.dir/convey.c.o
[406/514] Building C object nng/tests/CMakeFiles/mqtt_broker_tcp.dir/mqtt_broker_tcp.c.o
In file included from /build/source/nng/tests/mqtt_broker_tcp.c:19:
/build/source/nng/tests/trantest.h: In function 'trantest_mqtt_sub_pub':
/build/source/nng/tests/trantest.h:664:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
664 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:663:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
663 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'trantest_mqttv5_sub_pub':
/build/source/nng/tests/trantest.h:701:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
701 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:700:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
700 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
In file included from /build/source/nng/tests/mqtt_broker_tcp.c:21:
/build/source/nng/tests/trantest.h: In function 'decode_sub_msg':
/build/source/nng/tests/trantest.h:848:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
848 | if (bpos < remaining_len - vpos) {
| ^
/build/source/nng/tests/trantest.h: In function 'decode_unsub_msg':
/build/source/nng/tests/trantest.h:1006:34: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
1006 | if (len_of_topic != -1) {
| ^~
[407/514] Linking C executable nng/tests/mqtt_broker_tcp
[408/514] Building C object nng/tests/CMakeFiles/tcp6.dir/tcp6.c.o
In file included from /build/source/nng/tests/tcp6.c:16:
/build/source/nng/tests/trantest.h: In function 'trantest_mqtt_sub_pub':
/build/source/nng/tests/trantest.h:664:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
664 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:663:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
663 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'trantest_mqttv5_sub_pub':
/build/source/nng/tests/trantest.h:701:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
701 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:700:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
700 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
In file included from /build/source/nng/tests/tcp6.c:18:
/build/source/nng/tests/trantest.h: In function 'decode_sub_msg':
/build/source/nng/tests/trantest.h:848:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
848 | if (bpos < remaining_len - vpos) {
| ^
/build/source/nng/tests/trantest.h: In function 'decode_unsub_msg':
/build/source/nng/tests/trantest.h:1006:34: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
1006 | if (len_of_topic != -1) {
| ^~
/build/source/nng/tests/tcp6.c: In function 'conveyMainImpl':
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/tcp6.c:86:9: note: in expansion of macro 'Convey'
86 | Convey("Malformed TCPv6 addresses do not panic", {
| ^~~~~~
[409/514] Building C object nng/tests/CMakeFiles/tcp6.dir/convey.c.o
[410/514] Linking C executable nng/tests/tcp6
[411/514] Building C object nng/tests/CMakeFiles/udp.dir/convey.c.o
[412/514] Building C object nng/tests/CMakeFiles/udp.dir/udp.c.o
In file included from /build/source/nng/tests/udp.c:17:
/build/source/nng/tests/trantest.h: In function 'trantest_mqtt_sub_pub':
/build/source/nng/tests/trantest.h:664:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
664 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:663:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
663 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'trantest_mqttv5_sub_pub':
/build/source/nng/tests/trantest.h:701:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
701 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:700:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
700 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
In file included from /build/source/nng/tests/udp.c:19:
/build/source/nng/tests/trantest.h: In function 'decode_sub_msg':
/build/source/nng/tests/trantest.h:848:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
848 | if (bpos < remaining_len - vpos) {
| ^
/build/source/nng/tests/trantest.h: In function 'decode_unsub_msg':
/build/source/nng/tests/trantest.h:1006:34: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
1006 | if (len_of_topic != -1) {
| ^~
/build/source/nng/tests/udp.c: In function 'conveyMainImpl':
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/udp.c:26:9: note: in expansion of macro 'Convey'
26 | Convey("We can start a pair of UDP ports", {
| ^~~~~~
[413/514] Linking C executable nng/tests/udp
[414/514] Building C object nng/tests/CMakeFiles/ws.dir/ws.c.o
In file included from /build/source/nng/tests/ws.c:19:
/build/source/nng/tests/trantest.h: In function 'trantest_mqtt_sub_pub':
/build/source/nng/tests/trantest.h:664:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
664 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:663:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
663 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'trantest_mqttv5_sub_pub':
/build/source/nng/tests/trantest.h:701:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
701 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:700:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
700 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
In file included from /build/source/nng/tests/ws.c:21:
/build/source/nng/tests/trantest.h: In function 'decode_sub_msg':
/build/source/nng/tests/trantest.h:848:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
848 | if (bpos < remaining_len - vpos) {
| ^
/build/source/nng/tests/trantest.h: In function 'decode_unsub_msg':
/build/source/nng/tests/trantest.h:1006:34: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
1006 | if (len_of_topic != -1) {
| ^~
[415/514] Building C object nng/tests/CMakeFiles/ws.dir/convey.c.o
[416/514] Linking C executable nng/tests/ws
[417/514] Building C object nng/tests/CMakeFiles/wss.dir/convey.c.o
[418/514] Building C object nng/tests/CMakeFiles/wss.dir/wss.c.o
In file included from /build/source/nng/tests/wss.c:20:
/build/source/nng/tests/trantest.h: In function 'trantest_mqtt_sub_pub':
/build/source/nng/tests/trantest.h:664:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
664 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:663:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
663 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:655:9: note: in expansion of macro 'Convey'
655 | Convey("mqtt pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h: In function 'trantest_mqttv5_sub_pub':
/build/source/nng/tests/trantest.h:701:34: warning: variable 'cp2' set but not used [-Wunused-but-set-variable]
701 | conn_param *cp2 = NULL; //cp in reqsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
/build/source/nng/tests/trantest.h:700:34: warning: variable 'cp1' set but not used [-Wunused-but-set-variable]
700 | conn_param *cp1 = NULL; //cp in repsock
| ^~~
/build/source/nng/tests/convey.h:114:25: note: in definition of macro 'conveyRun'
114 | convey_code \
| ^~~~~~~~~~~
/build/source/nng/tests/trantest.h:692:9: note: in expansion of macro 'Convey'
692 | Convey("mqttv5 pub and sub", {
| ^~~~~~
In file included from /build/source/nng/tests/wss.c:22:
/build/source/nng/tests/trantest.h: In function 'decode_sub_msg':
/build/source/nng/tests/trantest.h:848:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
848 | if (bpos < remaining_len - vpos) {
| ^
/build/source/nng/tests/trantest.h: In function 'decode_unsub_msg':
/build/source/nng/tests/trantest.h:1006:34: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
1006 | if (len_of_topic != -1) {
| ^~
[419/514] Linking C executable nng/tests/wss
[420/514] Building C object nng/tests/CMakeFiles/reqctx.dir/reqctx.c.o
[421/514] Building C object nng/tests/CMakeFiles/reqctx.dir/convey.c.o
[422/514] Linking C executable nng/tests/reqctx
[423/514] Building C object nng/tests/CMakeFiles/reqstress.dir/reqstress.c.o
/build/source/nng/tests/reqstress.c: In function 'conveyMainImpl':
/build/source/nng/tests/reqstress.c:268:1: warning: 'nng_closeall' is deprecated [-Wdeprecated-declarations]
268 | Main({
| ^~~~
In file included from /build/source/nng/tests/reqstress.c:15:
/build/source/nng/include/nng/nng.h:1372:15: note: declared here
1372 | NNG_DECL void nng_closeall(void) NNG_DEPRECATED;
| ^~~~~~~~~~~~
[424/514] Building C object nng/tests/CMakeFiles/compat_block.dir/compat_block.c.o
[425/514] Building C object nng/tests/CMakeFiles/reqstress.dir/convey.c.o
[426/514] Building C object nng/tests/CMakeFiles/compat_block.dir/compat_testutil.c.o
[427/514] Linking C executable nng/tests/compat_block
[428/514] Linking C executable nng/tests/reqstress
[429/514] Building C object nng/tests/CMakeFiles/compat_bug777.dir/compat_bug777.c.o
[430/514] Building C object nng/tests/CMakeFiles/compat_bus.dir/compat_bus.c.o
/build/source/nng/tests/compat_bus.c: In function 'main':
/build/source/nng/tests/compat_bus.c:32:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
32 | int rc;
| ^~
[431/514] Building C object nng/tests/CMakeFiles/compat_bug777.dir/compat_testutil.c.o
[432/514] Linking C executable nng/tests/compat_bug777
[433/514] Building C object nng/tests/CMakeFiles/compat_bus.dir/compat_testutil.c.o
[434/514] Building C object nng/tests/CMakeFiles/compat_cmsg.dir/compat_cmsg.c.o
/build/source/nng/tests/compat_cmsg.c: In function 'main':
/build/source/nng/tests/compat_cmsg.c:41:20: warning: variable 'data' set but not used [-Wunused-but-set-variable]
41 | unsigned char *data;
| ^~~~
/build/source/nng/tests/compat_cmsg.c:33:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
33 | int rc;
| ^~
[435/514] Linking C executable nng/tests/compat_bus
[436/514] Building C object nng/tests/CMakeFiles/compat_cmsg.dir/compat_testutil.c.o
[437/514] Linking C executable nng/tests/compat_cmsg
[438/514] Building C object nng/tests/CMakeFiles/compat_msg.dir/compat_msg.c.o
/build/source/nng/tests/compat_msg.c: In function 'main':
/build/source/nng/tests/compat_msg.c:39:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
39 | int rc;
| ^~
[439/514] Building C object nng/tests/CMakeFiles/compat_iovec.dir/compat_iovec.c.o
/build/source/nng/tests/compat_iovec.c: In function 'main':
/build/source/nng/tests/compat_iovec.c:34:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
34 | int rc;
| ^~
[440/514] Building C object nng/tests/CMakeFiles/compat_msg.dir/compat_testutil.c.o
[441/514] Building C object nng/tests/CMakeFiles/compat_iovec.dir/compat_testutil.c.o
[442/514] Linking C executable nng/tests/compat_msg
[443/514] Linking C executable nng/tests/compat_iovec
[444/514] Building C object nng/tests/CMakeFiles/compat_device.dir/compat_device.c.o
/build/source/nng/tests/compat_device.c: In function 'device1':
/build/source/nng/tests/compat_device.c:45:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
45 | int rc;
| ^~
/build/source/nng/tests/compat_device.c: In function 'device2':
/build/source/nng/tests/compat_device.c:61:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
61 | int rc;
| ^~
/build/source/nng/tests/compat_device.c: In function 'device3':
/build/source/nng/tests/compat_device.c:77:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
77 | int rc;
| ^~
[445/514] Building C object nng/tests/CMakeFiles/compat_device.dir/compat_testutil.c.o
[446/514] Building C object nng/tests/CMakeFiles/compat_pair.dir/compat_pair.c.o
[447/514] Linking C executable nng/tests/compat_device
[448/514] Building C object nng/tests/CMakeFiles/compat_pipeline.dir/compat_pipeline.c.o
[449/514] Building C object nng/tests/CMakeFiles/compat_pair.dir/compat_testutil.c.o
[450/514] Building C object nng/tests/CMakeFiles/compat_pipeline.dir/compat_testutil.c.o
[451/514] Linking C executable nng/tests/compat_pair
[452/514] Linking C executable nng/tests/compat_pipeline
[453/514] Building C object nng/tests/CMakeFiles/compat_poll.dir/compat_testutil.c.o
[454/514] Building C object nng/tests/CMakeFiles/compat_poll.dir/compat_poll.c.o
/build/source/nng/tests/compat_poll.c: In function 'getevents':
/build/source/nng/tests/compat_poll.c:66:16: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
66 | int rc;
| ^~
/build/source/nng/tests/compat_poll.c: In function 'main':
/build/source/nng/tests/compat_poll.c:133:26: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
133 | int rc;
| ^~
[455/514] Building C object nng/tests/CMakeFiles/compat_reqrep.dir/compat_reqrep.c.o
/build/source/nng/tests/compat_reqrep.c: In function 'main':
/build/source/nng/tests/compat_reqrep.c:34:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
34 | int rc;
| ^~
[456/514] Building C object nng/tests/CMakeFiles/compat_reqrep.dir/compat_testutil.c.o
[457/514] Linking C executable nng/tests/compat_poll
[458/514] Linking C executable nng/tests/compat_reqrep
[459/514] Building C object nng/tests/CMakeFiles/compat_survey.dir/compat_survey.c.o
/build/source/nng/tests/compat_survey.c: In function 'main':
/build/source/nng/tests/compat_survey.c:34:14: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
34 | int rc;
| ^~
[460/514] Building C object nng/tests/CMakeFiles/compat_survey.dir/compat_testutil.c.o
[461/514] Building C object nng/tests/CMakeFiles/compat_reqttl.dir/compat_reqttl.c.o
/build/source/nng/tests/compat_reqttl.c: In function 'device':
/build/source/nng/tests/compat_reqttl.c:39:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
39 | int rc;
| ^~
/build/source/nng/tests/compat_reqttl.c: In function 'main':
/build/source/nng/tests/compat_reqttl.c:58:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
58 | int rc;
| ^~
[462/514] Building C object nng/tests/CMakeFiles/compat_reqttl.dir/compat_testutil.c.o
[463/514] Linking C executable nng/tests/compat_survey
[464/514] Building C object nng/tests/CMakeFiles/compat_shutdown.dir/compat_shutdown.c.o
/build/source/nng/tests/compat_shutdown.c: In function 'main':
/build/source/nng/tests/compat_shutdown.c:32:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
32 | int rc;
| ^~
[465/514] Linking C executable nng/tests/compat_reqttl
[466/514] Building C object nng/tests/CMakeFiles/compat_surveyttl.dir/compat_surveyttl.c.o
/build/source/nng/tests/compat_surveyttl.c: In function 'device':
/build/source/nng/tests/compat_surveyttl.c:39:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
39 | int rc;
| ^~
/build/source/nng/tests/compat_surveyttl.c: In function 'main':
/build/source/nng/tests/compat_surveyttl.c:58:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
58 | int rc;
| ^~
[467/514] Building C object nng/tests/CMakeFiles/compat_shutdown.dir/compat_testutil.c.o
[468/514] Building C object nng/tests/CMakeFiles/compat_surveyttl.dir/compat_testutil.c.o
[469/514] Linking C executable nng/tests/compat_shutdown
[470/514] Linking C executable nng/tests/compat_surveyttl
[471/514] Building C object nng/tests/CMakeFiles/compat_options.dir/compat_options.c.o
In file included from /build/source/nng/tests/compat_options.c:14:
/build/source/nng/tests/compat_options.c: In function 'conveyMainImpl':
/build/source/nng/tests/convey.h:105:36: warning: variable 'convey_break' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
105 | int convey_break = 0; \
| ^~~~~~~~~~~~
/build/source/nng/tests/convey.h:166:25: note: in definition of macro 'ConveyMain'
166 | code \
| ^~~~
/build/source/nng/tests/convey.h:190:17: note: in expansion of macro 'conveyRun'
190 | conveyRun(name, code, &convey_rv); \
| ^~~~~~~~~
/build/source/nng/tests/convey.h:203:47: note: in expansion of macro 'ConveyTest'
203 | #define ConveyTestMain(name, code) ConveyMain(ConveyTest(name, code))
| ^~~~~~~~~~
/build/source/nng/tests/convey.h:313:18: note: in expansion of macro 'ConveyTestMain'
313 | #define TestMain ConveyTestMain
| ^~~~~~~~~~~~~~
/build/source/nng/tests/convey.h:243:28: note: in expansion of macro 'conveyRun'
243 | #define Convey(name, code) conveyRun(name, code, NULL)
| ^~~~~~~~~
/build/source/nng/tests/compat_options.c:25:9: note: in expansion of macro 'Convey'
25 | Convey("Given a compat NN_REP socket", {
| ^~~~~~
[472/514] Building C object nng/tests/CMakeFiles/compat_options.dir/convey.c.o
[473/514] Linking C executable nng/tests/compat_options
[474/514] Building C object nanomq/CMakeFiles/nanomq.dir/mqtt_api.c.o
[475/514] Building CXX object nng/tests/CMakeFiles/cplusplus_pair.dir/cplusplus_pair.cc.o
[476/514] Linking CXX executable nng/tests/cplusplus_pair
[477/514] Building C object nanomq/CMakeFiles/nanomq.dir/nanomq.c.o
[478/514] Building C object nanomq/CMakeFiles/nanomq.dir/process.c.o
/build/source/nanomq/process.c: In function 'process_daemonize':
/build/source/nanomq/process.c:86:9: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result]
86 | chdir("/");
| ^~~~~~~~~~
[479/514] Building C object nanomq/CMakeFiles/nanomq.dir/bridge.c.o
/build/source/nanomq/bridge.c: In function 'bridge_tcp_client':
/build/source/nanomq/bridge.c:480:9: warning: 'nng_dialer_setopt_ms' is deprecated [-Wdeprecated-declarations]
480 | nng_dialer_setopt_ms(dialer, NNG_OPT_MQTT_RECONNECT_BACKOFF_MAX, 240000);
| ^~~~~~~~~~~~~~~~~~~~
In file included from /build/source/nng/include/nng/mqtt/mqtt_client.h:39,
from /build/source/nanomq/include/bridge.h:4,
from /build/source/nanomq/bridge.c:1:
/build/source/nng/include/nng/nng.h:1329:14: note: declared here
1329 | NNG_DECL int nng_dialer_setopt_ms(nng_dialer, const char *, nng_duration) NNG_DEPRECATED;
| ^~~~~~~~~~~~~~~~~~~~
[480/514] Building C object nanomq/CMakeFiles/nanomq.dir/sub_handler.c.o
[481/514] Building C object nanomq/CMakeFiles/nanomq.dir/unsub_handler.c.o
[482/514] Building C object nanomq/CMakeFiles/nanomq.dir/pub_handler.c.o
[483/514] Building C object nanomq/CMakeFiles/nanomq.dir/hashmap.c.o
[484/514] Building C object nanomq/CMakeFiles/nanomq.dir/web_server.c.o
[485/514] Building C object nanomq/CMakeFiles/nanomq.dir/webhook_inproc.c.o
[486/514] Building C object nanomq/CMakeFiles/nanomq.dir/webhook_post.c.o
[487/514] Building C object nanomq/CMakeFiles/nanomq.dir/aws_bridge.c.o
[488/514] Building C object nanomq/CMakeFiles/nanomq.dir/nanomq_rule.c.o
[489/514] Building C object nanomq/CMakeFiles/nanomq.dir/rest_api.c.o
/build/source/nanomq/rest_api.c: In function 'get_uptime':
/build/source/nanomq/rest_api.c:1013:36: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'nng_time' {aka 'long unsigned int'} [-Wformat=]
1013 | snprintf(str, str_len, "%llu Hours, %llu minutes, %llu seconds", hours,
| ~~~^ ~~~~~
| | |
| long long unsigned int nng_time {aka long unsigned int}
| %lu
/build/source/nanomq/rest_api.c:1013:48: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'nng_time' {aka 'long unsigned int'} [-Wformat=]
1013 | snprintf(str, str_len, "%llu Hours, %llu minutes, %llu seconds", hours,
| ~~~^
| |
| long long unsigned int
| %lu
1014 | mins, secs);
| ~~~~
| |
| nng_time {aka long unsigned int}
/build/source/nanomq/rest_api.c:1013:62: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'nng_time' {aka 'long unsigned int'} [-Wformat=]
1013 | snprintf(str, str_len, "%llu Hours, %llu minutes, %llu seconds", hours,
| ~~~^
| |
| long long unsigned int
| %lu
1014 | mins, secs);
| ~~~~
| |
| nng_time {aka long unsigned int}
/build/source/nanomq/rest_api.c: In function 'get_client_exist_cb':
/build/source/nanomq/rest_api.c:1314:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1314 | return (void *) pid;
| ^
/build/source/nanomq/rest_api.c: In function 'get_cpu_time':
/build/source/nanomq/rest_api.c:1352:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
1352 | fgets(buff, sizeof(buff), fd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/source/nanomq/rest_api.c: In function 'ctrl_cb':
/build/source/nanomq/rest_api.c:2218:17: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result]
2218 | system(cmd);
| ^~~~~~~~~~~
[490/514] Building C object nanomq/CMakeFiles/nanomq.dir/cmd_proc.c.o
[491/514] Building C object nanomq/CMakeFiles/nanomq.dir/acl_handler.c.o
[492/514] Building C object nanomq/CMakeFiles/nanomq.dir/conf_api.c.o
[493/514] Generating dds_type.c, dds_type.h
No default extensibility provided. For one or more of the aggregated types in the IDL the extensibility is not explicitly set. Currently the default extensibility for these types is 'final', but this may change to 'appendable' in a future release because that is the default in the DDS XTypes specification.
[494/514] Building C object nanomq/CMakeFiles/nanomq.dir/apps/broker.c.o
[495/514] Building C object nanomq_cli/CMakeFiles/nanomq_cli.dir/bench.c.o
[496/514] Linking C executable nanomq/nanomq
[497/514] Building C object nanomq_cli/CMakeFiles/nanomq_cli.dir/dds2mqtt/dds_client.c.o
FAILED: nanomq_cli/CMakeFiles/nanomq_cli.dir/dds2mqtt/dds_client.c.o
/nix/store/x7n44lfys59k5ajj9w1fkxw5391cnn5v-gcc-wrapper-12.3.0/bin/gcc -DACL_SUPP -DENABLE_LOG -DNANO_HAVE_ABSTRACT_SOCKETS -DNANO_HIDDEN_VISIBILITY -DNANO_PLATFORM_LINUX -DNANO_PLATFORM_POSIX -DNANO_USE_EVENTFD -DNNG_STATIC_LIB -DNNG_SUPP_SQLITE -DNNG_SUPP_TLS -DSUPP_BENCH -DSUPP_CLIENT -DSUPP_DDS_PROXY -DSUPP_NNG_PROXY -DSUPP_RULE_ENGINE -DSUPP_SYSLOG -DSUPP_ZMQ_GATEWAY -I/build/source/nanomq_cli/include -I/build/source/nanomq_cli/dds2mqtt -I/build/source/nng/include/nng -I/build/source/nng/include -I/build/source/build/nanomq_cli -O3 -DNDEBUG -std=gnu99 -MD -MT nanomq_cli/CMakeFiles/nanomq_cli.dir/dds2mqtt/dds_client.c.o -MF nanomq_cli/CMakeFiles/nanomq_cli.dir/dds2mqtt/dds_client.c.o.d -o nanomq_cli/CMakeFiles/nanomq_cli.dir/dds2mqtt/dds_client.c.o -c /build/source/nanomq_cli/dds2mqtt/dds_client.c
/build/source/nanomq_cli/dds2mqtt/dds_client.c:17:10: fatal error: idl_convert.h: No such file or directory
17 | #include "idl_convert.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
[498/514] Building C object nanomq_cli/CMakeFiles/nanomq_cli.dir/client.c.o
/build/source/nanomq_cli/client.c: In function 'client_cb':
/build/source/nanomq_cli/client.c:1308:25: warning: 'nng_closeall' is deprecated [-Wdeprecated-declarations]
1308 | nng_closeall();
| ^~~~~~~~~~~~
In file included from /build/source/nng/include/nng/mqtt/mqtt_client.h:39,
from /build/source/nanomq_cli/client.c:20:
/build/source/nng/include/nng/nng.h:1372:15: note: declared here
1372 | NNG_DECL void nng_closeall(void) NNG_DEPRECATED;
| ^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment