gcc - UBuntu 12.04 LTS - warnings treated as errors when building Thrift 0.9.1 -


i use ubuntu 12.04 lts , gcc 4.8.1. want build , install thrift 0.9.1. first run ./configure, next make, information warnings (unused variables) treated errors. don't want modify thrift source code need disable gcc feature, makefile doesn't contain -werror flag. how fix ?

i trying build thrift 0.9.1 gcc 4.8 on ubuntu 12.04, too. didn't unused variables warnings treated errors, did unused local typedefs warnings failing build. guess same situation ran into.

in gcc 4.8, -wall enables new type of warning: -werror=unused-local-typedefs default. passing -wno-unused-local-typedefs when configuring should solve problem:

cppflags=-wno-unused-local-typedefs ./configure --without-tests 

note passed cppflags instead of cxxflags , cflags. build script of thrift 0.9.1 somehow fails pass cflags makefile under c_glib directory, while cppflags did.

also, 0.9.1 source tarball released compiling problem on tests. that's why included --without-tests option.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -