Two ways to fix the build error. 1. Remove -Werror compile flag 2. Remove the unused variable definition from source file
Best Regards, Zhenhua > -----Original Message----- > From: [email protected] [mailto:meta-freescale- > [email protected]] On Behalf Of Otavio Salvador > Sent: Monday, November 26, 2012 2:19 AM > To: GOPIKRISHNAN S > Cc: [email protected] > Subject: Re: [meta-freescale] powerpc-fsl-linux-g++: warning: switch '- > fhuge-objects' is no longer supported > > On Sat, Nov 24, 2012 at 3:45 PM, GOPIKRISHNAN S <[email protected]> > wrote: > > While building squid that i got from > > > > http://cgit.openembedded.org/openembedded/tree/recipes/squid?id=b0f0b3 > > ab87cf8 > > > > I can see lot on message like > > > > powerpc-fsl-linux-g++: warning: switch '-fhuge-objects' is no longer > > supported > > > > and finally end-up with, cc1plus is complaining that, all warnings are > > going to be treated as errors. > > > > User.cc: In static member function 'static void > > AuthUser::CachedACLsReset()': > > User.cc:161:17: error: variable 'username' set but not used > > [-Werror=unused-but-set-variable] > > cc1plus: all warnings being treated as errors > > This is probably caused by the update of GCC so it needs fixing. > > -- > Otavio Salvador O.S. Systems > E-mail: [email protected] http://www.ossystems.com.br > Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br > _______________________________________________ > meta-freescale mailing list > [email protected] > https://lists.yoctoproject.org/listinfo/meta-freescale _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
