Merge pull request #6355 from myfreeweb/clang6-warning

Add -Wno-register to calm down clang 6.0.0 (C++17 mode)
This commit is contained in:
Anthony 2018-02-07 22:25:57 -08:00 committed by GitHub
commit 8adce86daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

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