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

Disable warnings in llvm-gcc

I'm trying to build an open source project with llvm-gcc 4.2 with -emit-llvm flag. However I get many errors due to warning flags. Example of these errors: cc1: error: unrecognized command line option "-Warray-bounds" cc1: error: unrecognized…
drum
  • 5,416
  • 7
  • 57
  • 91
0
votes
0 answers

Getting rid of Android API level error when I am managing the API level manually

I have two sections of code to get the size of the display, one for API level > 13 and one that uses deprecated methods prior to that. I'm getting an error using the newer method because my min API level is set lower than required for it's use. Here…
CHollman82
  • 576
  • 1
  • 8
  • 28
0
votes
0 answers

Are there warning numbers which you can use as custom build warning error numbers?

I am working in Visual Studio 2013. I have written a console application that generates text. I call that application in the post build of another (larger winforms) application. I have been able to configure my output string in such a way that the…
JaJa
  • 411
  • 2
  • 13
0
votes
1 answer

How can I disable/suppress the warning sound played whenever I am building and have warnings?

My question today is right to the point. So whenever I build my project or my solution and there is a warning about anything such as a deprecated method, visual studio plays an annoying warning sound and I don't know how to disable the warning sound…
0
votes
2 answers

Suppress -Wproperty-no-attribute not working in Xcode

In an Xcode 5, ARC, iPhone project, I have received a large number of warnings reading "No 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed." I know what this warning means, and why I might want to fix it. But this would…
Resigned June 2023
  • 4,638
  • 3
  • 38
  • 49
0
votes
0 answers

How to include header from a subdirectory, whose parent directory is specified using '-I' to "gcc"?

I am compiling a C source file with -Wall option. It is giving me abc.c: XX: warning: implicit declaration of function xyz() I found out that the prototype for the function xyz is in a header present in the following directory path (similar to…
0xF1
  • 6,046
  • 2
  • 27
  • 50
0
votes
1 answer

How to suppress "Availability does not match previous declaration" warning

I have to use some private functions, like: SCDynamicStoreRef SCDynamicStoreCreate ( CFAllocatorRef allocator, CFStringRef name, SCDynamicStoreCallBack …
Sergey Demchenko
  • 2,924
  • 1
  • 24
  • 26
0
votes
1 answer

How to silence Eclipse's "Android SDK Missing" warnings

About a year ago, I first installed Eclipse for Android app development, but shortly later decided not to pursue this. Now I am using Eclipse for Java and C++ programming, but Eclipse reminds me with two to four warning boxes (like this:…
Resigned June 2023
  • 4,638
  • 3
  • 38
  • 49
0
votes
2 answers

how to turn off the mismatch warnings in antlr4

Is there is any way to turnoff the mismatch or no viable alternative warning/errors in antlr4. For example while parsing an input file suppose I'm getting these kind of infos: line 377:4 no viable alternative at input ',PRIMARY KEY' line 579:35 no…
Rishi Rahiman
  • 272
  • 1
  • 5
  • 14
0
votes
2 answers

android application with warning what are the drawbacks of warning

I have created an android mobile application and i have thoroughly clean everything in the xml file of the application but there are 2 warnings that i can get rid of one is activity_main.xml has more than 80 views, bad for performance and the other…
Giant
  • 1,619
  • 7
  • 33
  • 67
0
votes
1 answer

Suppression problems with generically typed Arrays

Why does this give me a type safety warning? MyAwesomeObject[] parent = new MyAwesomeObject[1];
user2499298
  • 177
  • 2
  • 5
  • 17
0
votes
1 answer

How to make adf.test print more precise p-value in R

I make a simple cointegration function using add.test from tseries packages cointegration <- function(vals) { library(tseries) beta <- coef(lm(vals[,2] ~ vals[,1] + 0, data = vals))[1] names(beta) <- NULL res <- adf.test(vals[,2] -…
lui.lui
  • 81
  • 1
  • 7
0
votes
1 answer

Valgrind suppression with using frame-level wildcard (ellipses)

I'm catching quite a few uninitialized value(s) under Valgrind. The finding is expected because its related to to OpenSSL's PRNG: ==5787== Use of uninitialised value of size 8 ==5787== at 0x533B449: _x86_64_AES_encrypt_compact (in…
jww
  • 97,681
  • 90
  • 411
  • 885
0
votes
1 answer

Suppress an error from the logs too

CodeIgniter 2.x still uses the classic mysql. We all know it's bad practice to still use it, but my job still requires me to use CodeIgniter. I always have my Console.app (OSX) open watching my Apache/MySQL/PHP/CodeIgniter-native error logs. Now I…
user1467267
0
votes
1 answer

How can I suppress warnings in SublimeLinter for mixed spaces/tabs in comments?

Here is a link to a screenshot of the warnings: I would like to be able to use the "cmd+/" shortcut to quickly comment out sections of code. Whenever I do, I get a bunch of space/tab mixing errors. I am required to use tabs for coding standards,…
Julian
  • 1,078
  • 5
  • 17