Top "Suppress-warnings" questions

Compilers and interpreters commonly warn about miscellaneous conditions.

Unnecessary @SuppressWarnings("unused")

I'm getting a compiler warning for the @SuppressWarnings annotation in eclipse for the code: @Override public boolean doSomething(@SuppressWarnings("unused") …

java eclipse annotations compiler-warnings suppress-warnings
Is there a way to suppress warnings in Xcode?

Is there a way to suppress warnings in Xcode? For example I am calling an undocumented method and since the …

objective-c xcode cocoa cocoa-touch suppress-warnings
Suppress deprecated import warning in Java

In Java, if you import a deprecated class: import SomeDeprecatedClass; You get this warning: The type SomeDeprecatedClass is deprecated Is …

java import deprecated suppress-warnings
Class is a raw type. References to generic type Class<T> should be parameterized

I have the following class (from a simple Spring tutorial) public class CarValidator implements Validator { public boolean supports(Class aClass) { …

java generics warnings suppress-warnings type-erasure
Suppressing "is never used" and "is never assigned to" warnings in C#

I have a HTTPSystemDefinitions.cs file in C# project which basically describes the older windows ISAPI for consumption by managed …

c# visual-studio suppress-warnings
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
Combining multiple @SuppressWarnings annotations - Eclipse Indigo

So the issue is being able to combine multple warning suppressions so that each item doesn't need it's own @SuppressWarnings …

java eclipse annotations eclipse-indigo suppress-warnings
Java 6: Unsupported @SuppressWarnings("rawtypes") warning

I moved to a new machine which has the latest Sun's Java compiler and noticed some warnings in the existing …

java compiler-construction warnings suppress-warnings raw-types
Disable messages upon loading a package

I have a package in R (ROCR) that I need to load in my R environment. Upon loading the package, …

r message libraries suppress-warnings verbosity
How to suppress GCC warnings from library headers?

I have a project that uses log4cxx, boost, etc. libraries whose headers generate lots of (repetitive) warnings. Is there …

gcc warnings suppress-warnings gcc-warning