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
Post a Comment