Top "Compiler-warnings" questions

Messages emitted by a compiler which indicate potential problems in code or configuration.

warning: implicit declaration of function

My compiler (GCC) is giving me the warning: warning: implicit declaration of function Please help me understand why is it …

c compiler-warnings
Property getters and setters

With this simple class I am getting the compiler warning Attempting to modify/access x within its own setter/getter …

swift properties compiler-warnings getter-setter
How do you disable the unused variable warnings coming out of gcc in 3rd party code I do not wish to edit?

I'd like to know what switch you pass to the gcc compiler to turn off unused variable warnings? I'm getting …

c++ gcc compiler-warnings compiler-flags
How to compile without warnings being treated as errors?

The problem is that the same code that compiles well on Windows, is unable to compile on Ubuntu. Every time …

c gcc compiler-warnings
Java Class.cast() vs. cast operator

Having being taught during my C++ days about evils of the C-style cast operator I was pleased at first to …

java generics casting compiler-warnings
What is the list of valid @SuppressWarnings warning names in Java?

What is the list of valid @SuppressWarnings warning names in Java? The bit that comes in between the ("") in @SuppressWarnings("").

java eclipse warnings compiler-warnings suppress-warnings
Objective-C implicit conversion loses integer precision 'NSUInteger' (aka 'unsigned long') to 'int' warning

I'm working through some exercises and have got a warning that states: Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned …

objective-c compiler-warnings implicit-conversion
What is "android:allowBackup"?

Since the new ADT preview version (version 21), they have a new lint warning that tells me the next thing on …

android adt compiler-warnings android-lint android-backup-service
How to disable GCC warnings for a few lines of code

In Visual C++, it's possible to use #pragma warning (disable: ...). Also I found that in GCC you can override per …

c gcc compiler-warnings pragma
What does "control reaches end of non-void function" mean?

I've been getting strange compiler errors on this binary search algorithm. I get a warning that control reaches end of …

c warnings compiler-warnings