Skip to main content

Thread: Default GCC flags on Ubuntu


my company has large code-base , large variety of linux machines on compiled. use both -wall , -werror in order ensure maximum code quality, ubuntu's gcc seems add warnings -wall other distros' gccs not, @ exact same or newer gcc version. means if developer checks in code there's chance build break me, since use ubuntu. i've found https://wiki.kubuntu.org/toolchain/c...=compilerflags turning off options called out there doesn't fix problems. instance, i'm seeing unused-but-set-variable show of accounted for. i'd know once , , why ubuntu adds these warnings, can either explicitly disable them me or explicitly enable them in code-base.

if don't want compilation abort, remove -werror. if not option, determine why co-worker's compiler not complaining enough.

whether i'm on ubuntu or redhat, compiling -wall option spit out warning unused variables.

platforms co-workers using?


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Default GCC flags on Ubuntu


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account