mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 18:28:35 +12:00
Enable most warnings in GCC
This commit is contained in:
parent
7492f335e9
commit
5d33d9a3d9
7 changed files with 40 additions and 10 deletions
|
@ -12,5 +12,13 @@ enum FPSCR_RN
|
|||
// Get the exponent of a float
|
||||
inline int fexpf(float x)
|
||||
{
|
||||
return ((u32&)x >> 23) & 0xFF;
|
||||
union
|
||||
{
|
||||
char data[4];
|
||||
u32 data32;
|
||||
float arg;
|
||||
};
|
||||
|
||||
arg = x;
|
||||
return (data32 >> 23) & 0xFF;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "PPUThread.h"
|
||||
#include "PPUInterpreter.h"
|
||||
#include "Utilities/asm.h"
|
||||
#include "Emu/Cell/Common.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "../CPU/CPUThread.h"
|
||||
#include "../Memory/vm.h"
|
||||
#include "Utilities/lockless.h"
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include "Utilities/asm.h"
|
||||
#include "SPUThread.h"
|
||||
#include "SPUInterpreter.h"
|
||||
#include "Emu/Cell/Common.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cfenv>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include "Emu/Cell/Common.h"
|
||||
#include "Emu/CPU/CPUThread.h"
|
||||
#include "Emu/Cell/SPUInterpreter.h"
|
||||
#include "Emu/Memory/vm.h"
|
||||
|
|
|
@ -9,7 +9,9 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||
# Set compiler options here
|
||||
|
||||
# Warnings
|
||||
add_compile_options(-Wall)
|
||||
add_compile_options(-Wno-attributes -Wno-enum-compare -Wno-invalid-offsetof)
|
||||
add_compile_options(-Wno-unknown-pragmas -Wno-unused-variable -Wno-reorder -Wno-comment)
|
||||
|
||||
elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
|
||||
# Clang 5.0 or latter is required
|
||||
|
@ -20,6 +22,7 @@ elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
|
|||
# Set compiler options here
|
||||
|
||||
add_compile_options(-ftemplate-depth=1024)
|
||||
add_compile_options(-Wunused-value -Wunused-comparison)
|
||||
if(APPLE)
|
||||
add_compile_options(-stdlib=libc++)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue