Top "Compiler-warnings" questions

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

Why "not all control paths return a value" is warning and not an error?

I was trying to answer this question. As suggested by the accepted answer, the problem with that code is that …

c++ compiler-warnings
Globally suppress c# compiler warnings

In my app I have a fair number of entities which have fields which are getting their values set via …

c# compiler-warnings suppress
Warnings as Errors - does not apply to Stylecop warnings

I want to treat Stylecop warnings as errors, but it's not working for me. My projects are configured to treat …

c# visual-studio visual-studio-2013 compiler-warnings stylecop
C++ Force compile-time error/warning on implicit fall-through in switch

switch statements can be super useful, but lead to a common bug where a programmer forgot a break statement: switch(…

c++ switch-statement compiler-warnings
PerformSelector warning

I'm receiving a warning PerformSelector may cause a leak because its selector is unknown In the code: - (void) callDelegate: (…

ios objective-c compiler-warnings performselector
Bad path warning, where is it coming from?

When I compile my project with compiler warnings (JDK 1.5) I get a bunch of bad path element warnings: Warning:: [path] …

java compiler-warnings
C/C++: How to use the do-while(0); construct without compiler warnings like C4127?

I'm often use do-while(0) construct in my #defines, for the reasons described in this answer. Also I'm trying to use …

c++ c visual-c++ macros compiler-warnings
How to not invoke warning: type specifier missing?

I am reading "The C programming Language" by Brian W. Kernighan and Dennis M. Ritchie. In chapter 1.2 "Variables and Arithmetic …

c compiler-warnings kernighan-and-ritchie
Ignore/only show errors/warnings from certain directory using CMake

main question: Is there a configuration for cmake, to show or ignore compiler warnings/errors only from a certain directory? …

compiler-errors cmake qt-creator compiler-warnings