Turn not returning from a function into an error!!!!
This commit is contained in:
parent
fab7ec0ad1
commit
df125c3916
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue