Top "Compiler-warnings" questions

Messages emitted by a compiler which indicate potential problems in code or configuration.

The parameter 'foo' should not be assigned -- what's the harm?

Compare this method: void doStuff(String val) { if (val == null) { val = DEFAULT_VALUE; } // lots of complex processing on val } ... to …

java eclipse warnings compiler-warnings
How to fix "Protocol Not Implemented"

When I make a new controller called TestController, I insert <UITableViewDelegate,UITableViewDataSource,UITextFieldDelegate,UISearchBarDelegate> to the interface of …

objective-c xcode cocoa-touch protocols compiler-warnings
What does i = (i, ++i, 1) + 1; do?

After reading this answer about undefined behavior and sequence points, I wrote a small program: #include <stdio.h> …

c operators expression compiler-warnings comma-operator
gcc with -Werror and -Wno-error=unused

I always compile with -Wall -Wextra -Werror. However many times as I do quick compile tests I need to ignore …

gcc compiler-warnings compiler-options
unchecked call to ArrayAdapter

I get the following warning when I instantiate my ArrayAdapter (compiles fine): warning: [unchecked] unchecked call to ArrayAdapter(android.content.…

java android warnings compiler-warnings
Can I get PyCharm to suppress a particular warning on a single line?

PyCharm provides some helpful warnings on code style, conventions and logical gotchas. It also provides a notification if I try …

python pycharm compiler-warnings suppress-warnings
How to eliminate warning about ambiguity?

I have this warning: Warning 3 Ambiguity between method 'Microsoft.Office.Interop.Word._Application.Quit(ref object, ref object, ref object)…

c# visual-studio-2010 warnings compiler-warnings office-interop
Suppress "discarded non-Unit value" warning

I have added the scalac command line argument -Ywarn-value-discard to my build because this would have caught a subtle bug …

scala compiler-warnings
build rules for xcode / iPhone

Im incorporating the facebook SDK into an update and i get compiler warnings for four files,in one of my …

iphone compiler-warnings build-rules