Peter Eisentraut <pete...@gmx.net> writes: > GCC 4.4 produces a bunch of new compiler warnings against 8.4; see attached > output. Some of these are related to our old friend fastgetattr(), but it's > a > bit too late for me to make sense of it now.
> As we have grown accustomed to warnings-free builds, it would be nice to fix > these. I've fixed all the 'variable may be used uninitialized' warnings that I see in a basic build (there might be some others in optional code). The 'value computed is not used' warnings all seem to come from these lines in fastgetattr(): (((isnull) != NULL) ? (*(isnull) = false) : (dummyret)NULL), \ ... (((isnull) != NULL) ? (*(isnull) = true) : (dummyret)NULL), \ Since there isn't any obvious better way to do this, I consider this warning to be a gcc bug, and have filed it accordingly: https://bugzilla.redhat.com/show_bug.cgi?id=497545 regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers