Added Noreturn attribtes to a couple of functions and made a missing noreturn an error
This commit is contained in:
parent
2f81c1d7fb
commit
8e11c270fc
@ -198,7 +198,7 @@ macro(set_exe_flags)
|
|||||||
add_flags_cxx("-Wno-error=covered-switch-default -Wno-error=shadow")
|
add_flags_cxx("-Wno-error=covered-switch-default -Wno-error=shadow")
|
||||||
add_flags_cxx("-Wno-error=exit-time-destructors -Wno-error=missing-variable-declarations")
|
add_flags_cxx("-Wno-error=exit-time-destructors -Wno-error=missing-variable-declarations")
|
||||||
add_flags_cxx("-Wno-error=global-constructors -Wno-implicit-fallthrough")
|
add_flags_cxx("-Wno-error=global-constructors -Wno-implicit-fallthrough")
|
||||||
add_flags_cxx("-Wno-missing-noreturn -Wno-error=unreachable-code -Wno-error=undef")
|
add_flags_cxx("-Wno-error=unreachable-code -Wno-error=undef")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ public:
|
|||||||
void Push(const HTTPTemplateRequest * a_Request);
|
void Push(const HTTPTemplateRequest * a_Request);
|
||||||
void Push(cTNTEntity * a_TNTEntity);
|
void Push(cTNTEntity * a_TNTEntity);
|
||||||
void Push(Vector3i * a_Vector);
|
void Push(Vector3i * a_Vector);
|
||||||
void Push(void * a_Ptr);
|
NORETURNDEBUG void Push(void * a_Ptr);
|
||||||
void Push(cHopperEntity * a_Hopper);
|
void Push(cHopperEntity * a_Hopper);
|
||||||
void Push(cBlockEntity * a_BlockEntity);
|
void Push(cBlockEntity * a_BlockEntity);
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ protected:
|
|||||||
void CheckWorldAge(const AString & a_WorldName, Int64 a_Age);
|
void CheckWorldAge(const AString & a_WorldName, Int64 a_Age);
|
||||||
|
|
||||||
/// Called when a deadlock is detected. Aborts the server.
|
/// Called when a deadlock is detected. Aborts the server.
|
||||||
void DeadlockDetected(void);
|
NORETURN void DeadlockDetected(void);
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -98,6 +98,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
#define NORETURNDEBUG NORETURN
|
||||||
|
#else
|
||||||
|
#define NORETURNDEBUG
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user