Skip to content

Commit

Permalink
Turn not returning from a function into an error!!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Jan 19, 2025
1 parent fab7ec0 commit df125c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ endif()

# Set up flags for MSVC
if (MSVC)
set( CMAKE_CXX_FLAGS "/MP ${CMAKE_CXX_FLAGS}" )
# /we4715 turns "'function' : not all control paths return a value" as it should be!!!!!!!!one1!
set( CMAKE_CXX_FLAGS "/MP /we4715 ${CMAKE_CXX_FLAGS}" )
endif (MSVC)

# Set up flags for GCC
Expand Down
1 change: 1 addition & 0 deletions src/r_data/gldefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const GlobalShaderDesc * GetGlobalShader(GlobalShaderAddr index)

if(index.type == 1) return mapshaders[index.num].CheckKey(name);
if(index.type == 2) return classshaders[index.num].CheckKey(name);
return &nullglobalshader;
}

void CleanupGlobalShaders()
Expand Down

0 comments on commit df125c3

Please sign in to comment.