Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence warnings in compilers without [[noreturn]] #7529

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CMake/platforms/android.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ set(UBSAN OFF)

# Disable in-game options to exit the game.
set(NOEXIT ON)

# NDK C++ compiler does not support [[noreturn]], leading to lots of warnings like this:
#
# warning: non-void function does not return a value in all control paths
#
# Silence them.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-return-type")
7 changes: 7 additions & 0 deletions CMake/platforms/xbox_nxdk.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ set(CMAKE_THREAD_LIBS_INIT "-lpthread")
set(CMAKE_HAVE_THREADS_LIBRARY 1)
set(CMAKE_USE_WIN32_THREADS_INIT 0)
set(CMAKE_USE_PTHREADS_INIT 1)

# nxdk C++ compiler does not support [[noreturn]], leading to lots of warnings like this:
#
# warning: non-void function does not return a value in all control paths
#
# Silence them.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-return-type")
Loading