Skip to content

Commit

Permalink
Windows|Cygwin: Return type warnings should be errors
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 626a247 commit 2d21c17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doomsday/cmake/PlatformCygwin.cmake
Expand Up @@ -16,3 +16,7 @@ add_definitions (
-D_GNU_SOURCE=1
-DDE_PLATFORM_ID="win-${DE_ARCH}"
)

if (CMAKE_COMPILER_IS_GNUCXX)
append_unique (CMAKE_CXX_FLAGS -Werror=return-type)
endif ()
1 change: 1 addition & 0 deletions doomsday/libs/gloom/src/render/light.cpp
Expand Up @@ -170,6 +170,7 @@ Mat4f Light::lightMatrix(gfx::CubeFace face) const
case gfx::NegativeZ:
return proj * Mat4f::lookAt(pos + Vec3f(0, 0, 1), pos, Vec3f(0, 1, 0));
}
return {};
}

} // namespace gloom
1 change: 1 addition & 0 deletions doomsday/tools/shell/src/folderselection.cpp
Expand Up @@ -101,6 +101,7 @@ void FolderSelection::setEnabled(bool yes)
de::NativePath FolderSelection::path() const
{
// return convert(d->edit->text());
return {};
}

void FolderSelection::selectFolder()
Expand Down

0 comments on commit 2d21c17

Please sign in to comment.