[PATCH] ctdb-tests: Fix CTDB -O3 --picky-developer build on CentOS 7

Martin Schwenke martin at meltin.net
Thu Sep 6 06:19:28 UTC 2018

gcc 4.8.5 complains:

[319/381] Compiling ctdb/tests/src/system_socket_test.c
../tests/src/system_socket_test.c: In function ‘test_tcp’:
../tests/src/system_socket_test.c:196:20: error: ‘rst_out’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  assert((rst != 0) == (rst_out != 0));
cc1: all warnings being treated as errors

Please review and maybe push...

peace & happiness,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ctdb-tests-Fix-CTDB-O3-picky-developer-build-on-Cent.patch
Type: text/x-patch
Size: 1290 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180906/79593a18/0001-ctdb-tests-Fix-CTDB-O3-picky-developer-build-on-Cent.bin>

More information about the samba-technical mailing list