Compiler warning - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Compiler warning
Date
Msg-id CAM3SWZRR4=aPjyQDiGygfiFFb9jBe_=stDp-SvFhy0=2z84S=A@mail.gmail.com
Whole thread Raw
Responses Re: Compiler warning  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Getting sorted data from foreign server
Next
From: Michael Paquier
Date:
Subject: Re: Re: In-core regression tests for replication, cascading, archiving, PITR, etc.