Thread: Compiler warning
Commit 7e2a18a9 must have caused this compiler warning which I now see on the master branch with my standard release build settings: gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g3 -gdwarf-4 -Werror -I. -I../../../../src/include -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o logicalfuncs.o logicalfuncs.c -MMD -MP -MF .deps/logicalfuncs.Po postmaster.c: In function ‘ServerLoop’: postmaster.c:1777:9: error: ‘now’ may be used uninitialized in this function [-Werror=maybe-uninitialized] (now - AbortStartTime) >= SIGKILL_CHILDREN_AFTER_SECS) ^ cc1: all warnings being treated as errors make[3]: *** [postmaster.o] Error 1 -- Peter Geoghegan
Peter Geoghegan <pg@heroku.com> writes: > Commit 7e2a18a9 must have caused this compiler warning which I now see > on the master branch with my standard release build settings: [ scratches head... ] Dunno why my compiler didn't complain about that. Will fix it in a bit. regards, tom lane