Fix disarm warnings in clang more properly

This commit is contained in:
Henrik Rydgård 2013-12-09 16:56:05 +01:00
parent 20873f2985
commit a53f8738d8

View file

@ -60,11 +60,11 @@
* (Thanks to Vincent Zweije for reporting this.)
*/
#ifdef clang-3.4
#ifdef __clang__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtautological-compare" //used to avoid warning, force compiler to accept it.
#endif clang-3.4
#pragma GCC diagnostic ignored "-Wstring-plus-int"
#endif
#include <stdio.h>
#include <stdlib.h>
@ -1054,7 +1054,6 @@ void ArmDis(unsigned int addr, unsigned int w, char *output, bool includeWord) {
}
}
#ifdef clang-3.4
#ifdef __clang__
#pragma GCC diagnostic pop
#endif clang-3.4
#endif