Top "Suppress-warnings" questions

Compilers and interpreters commonly warn about miscellaneous conditions.

How to suppress FindBugs warnings for fields or local variables

I would like to suppress FindBugs warnings for specific fields or local variables. FindBugs documents that the Target can be …

java findbugs suppress-warnings
@SuppressWarnings("serial")

I have a question because I'm getting a little confused (or maybe I'm not noticing something obvious). Let's say that …

java serialization suppress-warnings
Ignore divide by 0 warning in NumPy

I have a function for statistic issues: import numpy as np from scipy.special import gamma as Gamma def Foo(…

python numpy suppress-warnings divide-by-zero
Exclude all permission denied messages from "du"

I am trying to evaluate the disk usage of a number of Unix user accounts. Simply, I am using the …

shell sorting warnings suppress-warnings du
Suppress Database Project errors and warnings in visual studio 2010

I have an Database project in my application and want to suppress the errors/warnings thrown by this project. .first …

database visual-studio-2010 suppress-warnings
How to suppress Java warnings for specific directories or files such as generated code

I'm using a parser generator that creates somewhat ugly code. As a result my Eclipse project has several dozen warnings …

java eclipse suppress-warnings generated-code
Disable/suppress warning CS0649 in C# for a specific field of class

I have some fields in a C# class which I initialize using reflection. The compiler shows CS0649 warning for them: …

c# suppress-warnings
Mark unused parameters in Kotlin

I am defining some functions to be used as callbacks and not all of them use all their parameters. How …

suppress-warnings kotlin unused-variables
How to disable warnings for particular include files?

I wold like to disable particular warnings for all files that are included, directly or indirectly, by particular include files. …

c++ suppress-warnings
Suppress duplicate warnings in IntelliJ IDEA by annotation

Since version 15, IntelliJ warns me about code duplicates. In some cases this might be intentional, so I want to ignore/…

intellij-idea suppress-warnings code-duplication