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
1 answer

How to overwrite the `make dist` default target of Qmake?

In a Qt project, I need to provide a custom make dist. So I added the following lines to the *.pro file: QMAKE_EXTRA_TARGETS += dist dist.commands = [...] That works, but shows the following warnings each time I run make: Makefile:209: warning:…
vog
  • 23,517
  • 11
  • 59
  • 75
0
votes
1 answer

How do I get the command line Delphi-2007 compiler to ignore or suppress a particular warning

I am using Delphi 2007. I know how to get the IDE compiler to suppress/ignore particular warnings. But how do I get the command line compiler to do this ?
Rohit Gupta
  • 4,022
  • 20
  • 31
  • 41
0
votes
1 answer

Cause of R package not loading quietly?

Sometimes when you load a new package in R there is a message printed. There are built-in arguments in functions library and require to prevent this form happening, namely "verbose" and "quietly." (see here). However, I cannot get the package 'plyr'…
theforestecologist
  • 4,667
  • 5
  • 54
  • 91
0
votes
1 answer

Resharper: how to suppress warning "Field xy is never used" in XAML

I want to suppress a warning in my xaml file. I applied the corresponding quick fix option to "Disable once warning by comment". However, the warning is still active. How do I correctly suppress the warning? I would like to keep the name because it…
Stefan
  • 10,010
  • 7
  • 61
  • 117
0
votes
1 answer

How to hide warnings about ignored attributes in Xcode?

How can I disable the following warning in Xcode? 'packed' attribute ignored for field of type 'uchar' (aka 'unsigned char') I browsed through the list of warning switches but couldn't find anything regarding this, also disabled pedantic warnings…
Emil Laine
  • 41,598
  • 9
  • 101
  • 157
0
votes
0 answers

add line in cmake to edit Makefile definition

In my cmake file, I am specifying add_definitions ( -DBOOST_SIGNALS_NO_DEPRECATION_WARNING ). However, I am still seeing the warning warning: #warning "Boost.Signals is no longer being maintained and is now deprecated. Please switch to…
kilojoules
  • 9,768
  • 18
  • 77
  • 149
0
votes
1 answer

Eclipse generate "allocated object never used" errors in jmockit test

Using JMockIt 1.12 and Eclipse Luna and I get "The allocated object is never used" errors. I tried: @Test public void testNullCase() { new NonStrictExpectations() {{ TestClass.getPlug(); result = null; } ... …
Mag
  • 146
  • 1
  • 13
0
votes
1 answer

Supress error messages when pasting into SQL / Vertica Terminal

When I paste my SQL code into the Vertica Analytic Database interactive terminal, I receive this after each line of code: owen(> ABORT BEGIN COPY DROP EXPLAIN LOCK RESET SAMPLE…
0
votes
1 answer

Suppress Optimx Warning

I can't seem to suppress the warning Maximizing -- use negfn and neggr produced by this function: results_sigma <- optimx(par=sigma_guess, fn=myloglikelihood, lower=0, …
remykarem
  • 2,251
  • 22
  • 28
0
votes
0 answers

VS Code Analysis suppress all with same Rule ID

I am using C# with visual studio. I set up my project so that it runs code analysis on build, but I want to suppress all errors of the same type so I changed lines in the suppression file from this [assembly:…
SDK4
  • 59
  • 1
  • 9
0
votes
1 answer

Ignore return value of a gobble-only scanf (gcc)

So I've read this question and other related questions, and I know that it's a good idea to check the return value of scanf to avoid surprises. But I have the following scanf in my code: /* * If we don't gobble newlines, * then they'll be…
wchargin
  • 15,589
  • 12
  • 71
  • 110
0
votes
1 answer

How to make rubocop output nothing when there are no warnings or offenses?

I'd like rubocop but have it create no output if there are no offenses. I've played with the documented command line options, and taken a quick peek a the config option and source code without seeing anything promising. The closest I've come is…
David Hempy
  • 5,373
  • 2
  • 40
  • 68
0
votes
2 answers

IDEA disable severity entry in code inspections

is there a way to disable a specified severities visibility for code inspection? The intention is that it is not shown in inspection summaries. I think about a "do not show" warning like in Resharper? -> Resharper-DOC Thanks EDIT: I just don't want…
0
votes
1 answer

How can I more strictly guarantee a proper typecast when referencing a template object?

I have a Java class that acts as a container of another generic class. It stores the objects of the generic class in a vector. For reasons too complicated to get into, mostly related to obsessive refactoring (thanks Gil), the class contains a method…
0
votes
2 answers

xcode build error: Semantic issue cast from pointer to smaller type 'int' loses information

I never use macs or xcode but I need to now in order to build a C++ library for osx and ios. The C++ code builds fine for windows and android but in xcode I get hundreds of these red excmalation mark icons indicating this: Semantic issue cast…
Guye Incognito
  • 2,726
  • 6
  • 38
  • 72