Top "Compiler-warnings" questions

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

Avoid warning 'Unreferenced Formal Parameter'

I have a super class like this: class Parent { public: virtual void Function(int param); }; void Parent::Function(int param) { …

c++ compiler-warnings suppress-warnings
MSB3270: Mismatch between the processor architecture - Fakes Framework

Since I use Fakes Framework in my UnitTest, I get the following MSBuild warning. warning MSB3270: There was a mismatch …

.net msbuild compiler-warnings microsoft-fakes
How can I get rid of an "unused variable" warning in Xcode?

I understand exactly why unused variable warnings occur. I don't want to suppress them in general, because they are incredibly …

objective-c xcode compiler-warnings unused-variables
Is using #pragma warning push/pop the right way to temporarily alter warning level?

Once in a while it's difficult to write C++ code that wouldn't emit warnings at all. Having warnings enabled is …

c++ visual-c++ warnings compiler-warnings pragma
Selectively disable GCC warnings for only part of a translation unit?

What's the closest GCC equivalent to this MSVC preprocessor code? #pragma warning( push ) // Save the current warning state. #pragma warning( …

c++ c gcc compiler-warnings pragma
How can I disable compiler warnings in Eclipse on a file specific basis?

In my Eclipse project are a handful of generated .java files that I need to use for SQLJ and I …

java eclipse compiler-construction compiler-warnings
What are the valid characters for macro names?

Are C-style macro names subject to the same naming rules as identifiers? After a compiler upgrade, it is now emitting …

c compiler-warnings c-preprocessor
What's the point of g++ -Wreorder?

The g++ -Wall option includes -Wreorder. What this option does is described below. It is not obvious to me why …

c++ g++ compiler-warnings
Visual Studio warning level meanings?

On the build tab in a Web Application project I have a setting called "Warning Level". I can set a …

c# visual-studio warnings compiler-warnings
Using enum inside types - Compiler warning C4482 C++

I am using fully qualified name of the enum inside a method in one of my class. But I am …

c++ enums compiler-warnings