diff options
author | smatz <smatz@openttd.org> | 2008-04-18 21:38:36 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-18 21:38:36 +0000 |
commit | 14dc60c8a1a31dc000d931e4c54350903ce3bc45 (patch) | |
tree | 0832b2ec9f340a6490911957f49c46b64180be4f /src/core/alloc_func.cpp | |
parent | f32ecbcadb523777cd4700b56d1562363d5646ea (diff) | |
download | openttd-14dc60c8a1a31dc000d931e4c54350903ce3bc45.tar.xz |
(svn r12778) -Codechange: add the NORETURN attribute to *allocError() functions
Diffstat (limited to 'src/core/alloc_func.cpp')
-rw-r--r-- | src/core/alloc_func.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/alloc_func.cpp b/src/core/alloc_func.cpp index 930482aa7..f399aadf8 100644 --- a/src/core/alloc_func.cpp +++ b/src/core/alloc_func.cpp @@ -9,7 +9,7 @@ * Function to exit with an error message after malloc() or calloc() have failed * @param size number of bytes we tried to allocate */ -void MallocError(size_t size) +void NORETURN MallocError(size_t size) { error("Out of memory. Cannot allocate %i bytes", size); } @@ -18,7 +18,7 @@ void MallocError(size_t size) * Function to exit with an error message after realloc() have failed * @param size number of bytes we tried to allocate */ -void ReallocError(size_t size) +void NORETURN ReallocError(size_t size) { error("Out of memory. Cannot reallocate %i bytes", size); } |