Re: consider -Wmissing-variable-declarations - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: consider -Wmissing-variable-declarations
Date
Msg-id 972b0257-00fe-4758-a01b-94918ea34ea6@eisentraut.org
Whole thread Raw
In response to Re: consider -Wmissing-variable-declarations  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 03.08.24 22:46, Tom Lane wrote:
> Peter Eisentraut <peter@eisentraut.org> writes:
>> This has all been committed now.
> 
> Various buildfarm animals are complaining about
> 
> g++ -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla
-Werror=unguarded-availability-new-Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security
-Wmissing-variable-declarations-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-Wno-unused-command-line-argument-Wno-compound-token-split-by-macro -Wno-cast-function-type-strict -g -O2
-Wno-deprecated-declarations-fPIC -fvisibility=hidden -shared -o llvmjit.so  llvmjit.o llvmjit_error.o llvmjit_inline.o
llvmjit_wrap.ollvmjit_deform.o llvmjit_expr.o -L../../../../src/port -L../../../../src/common   -L/usr/lib64
-Wl,--as-needed-Wl,-rpath,'/home/centos/17-lancehead/buildroot/HEAD/inst/lib',--enable-new-dtags  -fvisibility=hidden
-lLLVM-17
> g++: error: unrecognized command line option \342\200\230-Wmissing-variable-declarations\342\200\231; did you mean
\342\200\230-Wmissing-declarations\342\200\231?
> make[2]: *** [../../../../src/Makefile.shlib:261: llvmjit.so] Error 1
> 
> It looks like we are passing CFLAGS not CXXFLAGS to this particular
> g++ invocation.

Changing this seems to have done the trick.




pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: Logical Replication of sequences
Next
From: Peter Eisentraut
Date:
Subject: Remove support for old realpath() API