Messages emitted by a compiler which indicate potential problems in code or configuration.
I'm getting this warning on a stack variable: warning: object.member may be used uninitialized in this function In this …
c++ gcc compiler-warningsWhile getting started with some VS2005-generated MFC code, I noticed it overrode a method with something like this: void …
c++ compiler-warningslint produces some warning like: foo.c XXX Warning 534: Ignoring return value of function bar() From the lint manual 534 Ignoring …
c++ gcc g++ return-value compiler-warningsConsider the following program: #include <string> struct S { S (){} private: void *ptr = nullptr; std::string str = ""; }; int main(){} …
c++ pointers g++ compiler-warnings rule-of-threeSuppose I have the following expression String myString = getStringFromSomeExternalSource(); if (myString != null && myString.trim().length() != 0) { ... } Eclipse warns me …
java compiler-warnings boolean-logic boolean-expressionI'm getting a strange warning: The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global …
c# compiler-warningsIs there a way to suppress warnings in C# similar to Java's @SuppressWarnings annotation? Failing that, is there another way …
c# java visual-studio compiler-warningsWhen I compile function with "gcc -o dene -Wall -ansi -pedantic-errors dene.c" ,gcc emits no error.(can you look …
c declaration compiler-warnings c89I'm using Keil uVision v4.74 and have enabled the option "All Warnings". I wrote the following intentional code: if(condition …
c if-statement compiler-warnings keilSome people seem to advise you use -Wall, but when I did it on a small test project which just …
c++ visual-c++ compiler-warnings