Top "Suppress-warnings" questions

Compilers and interpreters commonly warn about miscellaneous conditions.

Suppress warning "QApplication was not created in main() thread"

I've created a Qt-based network library for use with applications that are not running a Qt event loop, and which …

c++ qt suppress-warnings qcoreapplication
How to disable warning for redefining a constant when loading a file

Is there a way to disable warning: already initialized constant when loading particular files?

ruby warnings constants suppress-warnings
clang-tidy: How to suppress warnings?

I recently started experimenting with the clang-tidy tool of llvm. Now I am trying to suppress false warnings from third …

suppress-warnings clang-static-analyzer clang-tidy
Disabling a specific warning in a specific line in Xcode

I'm writing an iPhone app against the Base 4.0 SDK, but I'm targeting OS 3.1.3 so OS 3 users can use the app. …

iphone xcode warnings suppress-warnings
Add @SuppressWarnings("unchecked") in generics to single line generates eclipse compiler error

I have stumbled upon a strange behavior that I don't understand. I have to cast a String to a generic …

java eclipse generics compiler-errors suppress-warnings
How do I get warnings.warn to issue a warning and not ignore the line?

I'm trying to raise a DeprecationWarning, with a code snippet based on the example shown in the docs. http://docs.…

python python-2.7 warnings suppress-warnings
Suppress -Wunknown-pragmas warning in GCC

I try to ignore warnings coming from some 3rd party header files like this: #pragma GCC diagnostic push #pragma GCC …

gcc warnings pragma suppress-warnings
DLS_DEAD_LOCAL_STORE SuppressWarnings FindBugs false positive

I'm trying to eliminate a false positive for DLS_DEAD_LOCAL_STORE Here's what I have tried so far: @SuppressWarnings("…

java findbugs spring-annotations suppress-warnings
SuppressWarnings "all" complaint from Eclipse

What is wrong with the SuppressWarnings annotation above the if statement? Eclipse with Sun JDK 6 provides two syntax error descriptions, …

java eclipse dead-code suppress-warnings
Kotlin: Suppress unused Property?

My source code is as follows: There are warnings : Property '****' is never used. I added "@Suppress("UNUSED_PARAMETER")", "@…

kotlin suppress-warnings