summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-09-20 23:01:39 +0200
committertycho <work.tycho@gmail.com>2015-12-18 19:13:44 +0100
commit8d087c2ea00ebdada793a03ef885faf6b22ec9d6 (patch)
tree8e05043e876c186d809b617a5102f2946e4a0928 /src/Globals.h
parentMerge pull request #2774 from cuberite/worktycho-patch-1 (diff)
downloadcuberite-8d087c2ea00ebdada793a03ef885faf6b22ec9d6.tar
cuberite-8d087c2ea00ebdada793a03ef885faf6b22ec9d6.tar.gz
cuberite-8d087c2ea00ebdada793a03ef885faf6b22ec9d6.tar.bz2
cuberite-8d087c2ea00ebdada793a03ef885faf6b22ec9d6.tar.lz
cuberite-8d087c2ea00ebdada793a03ef885faf6b22ec9d6.tar.xz
cuberite-8d087c2ea00ebdada793a03ef885faf6b22ec9d6.tar.zst
cuberite-8d087c2ea00ebdada793a03ef885faf6b22ec9d6.zip
Diffstat (limited to 'src/Globals.h')
-rw-r--r--src/Globals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Globals.h b/src/Globals.h
index dc5d27636..f20764fb1 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -42,6 +42,8 @@
#define ALIGN_8
#define ALIGN_16
+ #define WARN_UNUSED
+
#define FORMATSTRING(formatIndex, va_argsIndex)
// MSVC has its own custom version of zu format
@@ -69,6 +71,8 @@
#define ALIGN_8 __attribute__((aligned(8)))
#define ALIGN_16 __attribute__((aligned(16)))
+ #define WARN_UNUSED __attribute__((warn_unused_result))
+
// Some portability macros :)
#define stricmp strcasecmp