Skip to main content

Questions tagged [warnings]

4 votes
6 answers
666 views

A co-worker of mine is working on project solo but would still like to have other team members review their code upon reaching certain milestones. Unfortunately, they also want to wait until the end ...
user8297969's user avatar
-4 votes
1 answer
699 views

When we are working on a big project of C or CPP, we are getting some warning. Therefore, we try to remove that warning because when we see compiler warnings that they make us feel dirty. When we ...
Jemes's user avatar
  • 133
2 votes
1 answer
95 views

My client has a process which iterates over a number of actions that may or may not apply to a users portfolio. Quite frequently, processing of an action may give up and jump to the next action or ...
Component 10's user avatar
5 votes
4 answers
5k views

I have been looking at VC++'s C4267: Compiler Warning (level 3) C4267 'var' : conversion from 'size_t' to 'type', possible loss of data The compiler detected a conversion from size_t to a ...
Martin Ba's user avatar
  • 7,861
15 votes
3 answers
30k views

I use @SuppressWarnings("unchecked") and @SuppressWarnings("null") mostly above methods to let the code compile without any warnings but I have my doubts. Found this Stackoverflow question. Jon Skeet ...
Bilesh Ganguly's user avatar
1 vote
2 answers
11k views

Some static analysis tools flag non-private fields with Variable '[nameHere]' must be private and have accessor methods. Sonar consistently presents such warnings and wants to change all protected ...
Reginald's user avatar
  • 113
1 vote
2 answers
195 views

This is a tiny project of about 2000LOC. It is being compiled with -Wall. Now, I tried adding -Wextra. Two things happened: Some minor but valid warnings popped up, e.g. Comparing signed with unsigned ...
Vorac's user avatar
  • 7,189
9 votes
5 answers
1k views

I work on a C++ project that generates bajillions of warnings. Most of the warnings appeared after the code was written: Initially the project used Visual C++ 8, soon switching to 9, but there is ...
Jan Hudec's user avatar
  • 18.5k

15 30 50 per page