aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compiler.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 16:27:01 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 17:01:18 +0200
commitc34317dc2cbb1d636fd00bd201033acb1ae22016 (patch)
tree54a1a823562fa7453d8378bde19b45dd657e96e8 /src/compiler.h
parentserver: more logging (diff)
downloadcimple-c34317dc2cbb1d636fd00bd201033acb1ae22016.tar.gz
cimple-c34317dc2cbb1d636fd00bd201033acb1ae22016.zip
make compilers happier
Diffstat (limited to 'src/compiler.h')
-rw-r--r--src/compiler.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compiler.h b/src/compiler.h
new file mode 100644
index 0000000..de721d9
--- /dev/null
+++ b/src/compiler.h
@@ -0,0 +1,10 @@
+#ifndef __COMPILER_H__
+#define __COMPILER_H__
+
+#ifdef __GNUC__
+#define UNUSED __attribute__((unused))
+#else
+#define UNUSED
+#endif
+
+#endif