Skip to content

Commit

Permalink
Fixed compiler warning about missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Aug 14, 2014
1 parent 0006b7d commit e52fb1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -258,10 +258,10 @@ IF(CMAKE_COMPILER_IS_GNUCC)
# temporarily disabled:
# -Wsign-conversion -Wfloat-equal -Wconversion -Wundef -Wshadow -Wswitch-default
# -Wswitch-enum -Wsign-promo -Wcast-qual -Woverloaded-virtual -Wmissing-format-attribute
# -Wold-style-cast -Wpadded -Wabi
# -Wold-style-cast -Wpadded -Wabi -Winline -Wunsafe-loop-optimizations -Wstrict-overflow=5
# fails on MinGW:
# -ansi
SET(SUPERTUX2_EXTRA_WARNING_FLAGS "-fdiagnostics-show-option -pedantic -Wno-long-long -Wcast-align -Wdisabled-optimization -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wpacked -Wredundant-decls -Wstack-protector -Winline -Wunsafe-loop-optimizations -Wstrict-overflow=5 -Wformat=2 -Weffc++ -Wctor-dtor-privacy -Wstrict-null-sentinel -Wno-unused-parameter")
SET(SUPERTUX2_EXTRA_WARNING_FLAGS "-fdiagnostics-show-option -pedantic -Wno-long-long -Wcast-align -Wdisabled-optimization -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wpacked -Wredundant-decls -Wstack-protector -Wformat=2 -Weffc++ -Wctor-dtor-privacy -Wstrict-null-sentinel -Wno-unused-parameter")
ENDIF(WARNINGS)
ENDIF(CMAKE_COMPILER_IS_GNUCC)

Expand Down
1 change: 1 addition & 0 deletions src/supertux/menu/menu_storage.cpp
Expand Up @@ -94,6 +94,7 @@ MenuStorage::create(MenuId menu_id)

default:
assert(!"unknown MenuId provided");
return std::unique_ptr<Menu>();
}
}

Expand Down

0 comments on commit e52fb1f

Please sign in to comment.