mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-25 09:09:49 +00:00
Update buildfix for Clang 3.4
Adding the wrapper to avoid warning "-Wtautological-compare": #ifdef clang-3.4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wtautological-compare" //used to avoid warning, force compiler to accept it. #endif clang-3.4 $Code_Content_Here #ifdef clang-3.4 #pragma GCC diagnostic pop #endif clang-3.4 Tested on both GCC and Clang compilers and none of these compilers have this problem.
This commit is contained in:
parent
fd1bd3c606
commit
bfeb3806ba
@ -60,6 +60,12 @@
|
||||
* (Thanks to Vincent Zweije for reporting this.)
|
||||
*/
|
||||
|
||||
#ifdef clang-3.4
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wtautological-compare" //used to avoid warning, force compiler to accept it.
|
||||
#endif clang-3.4
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -1046,4 +1052,9 @@ void ArmDis(unsigned int addr, unsigned int w, char *output, bool includeWord) {
|
||||
*output = ' ';
|
||||
output++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef clang-3.4
|
||||
#pragma GCC diagnostic pop
|
||||
#endif clang-3.4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user