summaryrefslogtreecommitdiff
path: root/src/poison.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/poison.hpp')
-rw-r--r--src/poison.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/poison.hpp b/src/poison.hpp
new file mode 100644
index 0000000..11ea41d
--- /dev/null
+++ b/src/poison.hpp
@@ -0,0 +1,16 @@
+// impossible(*) to use safely
+// removed in C11
+#pragma GCC poison gets
+
+// TODO fill in as they are removed from source code:
+// double (use a fixed class)
+#pragma GCC poison float
+// mem* and str* from <string.h>, in favor of <algorithm>
+
+// Local time is forbidden.
+#pragma GCC poison timelocal // timegm
+#pragma GCC poison mktime // timegm
+#pragma GCC poison localtime // gmtime
+#pragma GCC poison localtime_r // gmtime_r
+
+#pragma GCC poison time // TimeT::now() or gettick()