Ignore -Wregister to calm down recent clang and GCC (C++17 mode)

The 'register' keyword is used by a header included from Xlib (X11/XKBlib.h).
This commit is contained in:
Greg V 2018-02-04 23:41:02 +03:00
parent 44391ad2fe
commit 9b201815f2
1 changed files with 3 additions and 0 deletions

View File

@ -2,7 +2,10 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wregister"
#include <X11/XKBlib.h>
#pragma GCC diagnostic pop
#include <cmath>
#include <cstdlib>
#include <cstring>