Questions tagged [suppress-warnings]

Compilers and interpreters commonly warn about miscellaneous conditions. Suppressing some or all of those warnings may help to reduce the 'noise' a compiler emits.

Compilers and interpreters commonly warn about miscellaneous conditions. Suppressing some or all of those warnings may help to reduce the 'noise' a compiler emits.

Common warnings may be deprecation warnings or the use of an undefined value.

790 questions
0
votes
2 answers

@SuppressWarnings("unchecked") not working with drag and drop

I am using the following code that I found (How can I use Drag-and-Drop in Swing to get file path? from ABika) to do drag and drop: final class FileDropHandler extends TransferHandler { @Override public boolean…
njun
  • 65
  • 10
0
votes
0 answers

Using an @interface to suppress certain warnings in IntelliJ

I'm currently working on a game API that is used as a Core dependency in a bunch of my other projects. The issue I'm having is IntelliJ is giving me all sorts warnings because the API's methods/classes/variables need to be public, have a different…
0
votes
1 answer

Find all @Suppress annotation and //noinspection comment that the Lint tool of Android Studio generated before

I'm fixing warning and error issues that were reported by Lint tool of Android Studio. Some of them I don't want to fix now so I suppress them to ignore, using //noinspection or @SuppressWarnings("") However, Is there any proper way…
Hien Nguyen
  • 744
  • 2
  • 7
  • 20
0
votes
1 answer

How to suppress Pe070 error in IAR EW 8.1?

I have to upgrade an IAR EW project from V 7.80.2 to V 8.10.1. My project worked without any warnings or errors in version 7.8. When I try to build exact the same project in version 8.1 I get the following errors (Pe070 / Pe065 / Pe020) These…
0
votes
1 answer

compiling code that uses Class.isAssignableFrom() with and without a generics aware compiler

I have some Java code that needs to compile with current generics aware compilers as well as with older or exotic compilers that don't know about generics (yet). I managed to get almost all the code compile fine and without warnings except for the…
x4u
  • 13,877
  • 6
  • 48
  • 58
0
votes
0 answers

g++ alternative to Java's @SuppressWarnings annotation

In Java, if there is a warning that should be ignored we can suppress warnings on it like this: @SuppressWarnings("unused") public void functionCalledExternally(){ //code } What I can use to suppress a specific instance of a specific warning in…
john01dav
  • 1,842
  • 1
  • 21
  • 40
0
votes
3 answers

Android: Suppress Warning on method call

I'm trying to do a method that checks for android permissions. But when I call it I have a Missing Permission warning. Here is a simplification of my code: public void lintTestMethod(){ if(isPermissionGranted()) { …
Xavier Bauquet
  • 712
  • 1
  • 6
  • 18
0
votes
1 answer

VisualStudio - How to tell method is using for Relection or Serialization

I'm using Visual Studio 2015 and C#. Sometimes I have methods which are using by reflection or serialization and in warnings window I have information that method is not using. Is problem because while someone try refactoring code getting errors in…
Kisiel665
  • 81
  • 8
0
votes
1 answer

Suppress LNK4204 Warning

I'm stumped on how to suppress a flood of LNK4204 warnings for a vc110.pdb file in my VS2010 project. I've tried the /IGNORE approach, but after many attempts and extensive searching it appears that VS does not allow LNK4204 to be suppressed that…
0
votes
1 answer

meaning of Warnung: Symbol 'AllocateHWnd' wird abgelehnt

When building a BCB6 project on the command line via MAKE Version 5.2 running Borland C++ 5.6.4 (seemingly including a run of Borland Delphi Version 14.0), I'm getting these warnings: syncmeth.pas(57) Warnung: Symbol 'AllocateHWnd' wird…
0
votes
0 answers

Warning in R maps

I am trying to map a bunch of countries with the following code. require(mapdata) # get the names cc <- map('world', names = TRUE, plot = FALSE) take <- unlist(sapply(c("iran", "malaysia", "saudi arabia", "united arab emirates", "kuwait",…
RookiePie
  • 1
  • 3
0
votes
0 answers

Supress a single warning message in Python

In order for production code to run on machines with different python installations it needs to call import matplotlib as mpl mpl.use('Agg') This is super annoying because it throws the warning warnings.warn(_use_error_msg) …
Keith
  • 4,646
  • 7
  • 43
  • 72
0
votes
0 answers

CA1013: Overload operator equals on overloading add and subtract - even when using doubles?

Consider, as an example, the following minimalistic Point class, which works with doubles: public class Point { public double X { get; set; } public double Y { get; set; } public Point(double x, double y) { X = x; Y = y; } …
Timitry
  • 2,646
  • 20
  • 26
0
votes
1 answer

vim puppet lint suppress warnings from syntatic

Does anybody knows how to suppress warnings like: [80chars] line has more than 80 characters Syntastic has function to suppress certain warnings via a regex. Does anybody know how the regex for that warning would look like? Syntastic example: let…
prototyp
  • 570
  • 6
  • 20
0
votes
0 answers

Clang warnings not being suppressed in third party library (Xcode)

I'm using Xcode 6.3.2 to compile my application, which depends on JsonCpp. I would like to suppress the large number of warnings that this library generates so I've specified the path to the JsonCpp header using -isystem as advised in the Clang…
ksl
  • 4,519
  • 11
  • 65
  • 106