Compiler warning: Unreachable code was reached
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Due to some compiler errors i had to delete the build directory and recompile from scratch. Th compiler founds then some warings like:
[ 38%] Building CXX object src/ui_
In file included from /home/kaputtnik
/home/kaputtnik
/home/kaputtnik
#define NEVER_HERE() throw WException(
/home/kaputtnik
NEVER_HERE();
Is this normal?
There are also warnings like:
Warnung: nonnull argument »this« compared to NULL [-Wnonnull-compare]
Warnung: this »if« clause does not guard... [-Wmisleading-
Attached file contains gathered warnings like the above. The known warnings like "format %p ...." are not included.
Related branches
- kaputtnik (community): Approve (compiling)
-
Diff: 40 lines (+5/-3)2 files modifiedsrc/logic/map_objects/immovable.cc (+1/-1)
src/network/nethost.cc (+4/-2)
Changed in widelands: | |
status: | Fix Committed → Fix Released |
It looks like these warnings were added in GCC 6. Are you using GCC 6?