mirror of https://github.com/PCSX2/pcsx2.git
Change a few compiler options in Linux to remove a few warnings during compilation.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4947 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
b9d442d4f7
commit
251382aefe
|
@ -24,7 +24,8 @@ set(CommonFlags
|
||||||
-Wno-format
|
-Wno-format
|
||||||
-Wno-unused-parameter
|
-Wno-unused-parameter
|
||||||
-Wno-unused-value
|
-Wno-unused-value
|
||||||
-Wno-unused-variable)
|
-Wno-unused-variable
|
||||||
|
-Wno-write-strings)
|
||||||
|
|
||||||
# set warning flags
|
# set warning flags
|
||||||
set(DebugFlags
|
set(DebugFlags
|
||||||
|
|
|
@ -93,10 +93,14 @@ typedef FnType_Void* Fnptr_Void;
|
||||||
// --------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Linux isn't set up for svn version numbers yet.
|
// Linux isn't set up for svn version numbers yet.
|
||||||
#ifdef __LINUX__
|
#if defined(__LINUX__) && !defined(LINUX_PRINT_SVN_NUMBER)
|
||||||
|
#if !defined(SVN_REV)
|
||||||
# define SVN_REV 0
|
# define SVN_REV 0
|
||||||
|
#endif
|
||||||
|
#if !defined(SVN_MODS)
|
||||||
# define SVN_MODS 0
|
# define SVN_MODS 0
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ set(Output CDVDiso)
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
-Wall
|
-Wall
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
|
@ -12,6 +12,7 @@ set(Output CDVDnull)
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
-Wall
|
-Wall
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
|
@ -12,6 +12,7 @@ set(Output FWnull-0.7.0)
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
-Wall
|
-Wall
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
|
@ -20,6 +20,8 @@ set(CommonFlags
|
||||||
-Wno-unused-parameter
|
-Wno-unused-parameter
|
||||||
-Wno-unused-value
|
-Wno-unused-value
|
||||||
-Wunused-variable
|
-Wunused-variable
|
||||||
|
-Wno-invalid-offsetof
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
|
@ -12,6 +12,7 @@ set(Output GSnull)
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
-Wall
|
-Wall
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
|
@ -11,6 +11,7 @@ set(Output PADnull)
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
-Wall
|
-Wall
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
|
@ -12,6 +12,7 @@ set(Output SPU2null)
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
-Wall
|
-Wall
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
|
@ -12,6 +12,7 @@ set(Output USBnull-0.7.0)
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
-Wall
|
-Wall
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
|
@ -12,6 +12,7 @@ set(Output dev9null-0.5.0)
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
-Wall
|
-Wall
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
|
@ -12,6 +12,7 @@ set(Output onepad-1.1.0)
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
-Wall
|
-Wall
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
|
@ -127,7 +127,7 @@ queue<keyEvent> ev_fifo;
|
||||||
|
|
||||||
static int padVib0[2];
|
static int padVib0[2];
|
||||||
static int padVib1[2];
|
static int padVib1[2];
|
||||||
static int padVibC[2];
|
//static int padVibC[2];
|
||||||
static int padVibF[2][4];
|
static int padVibF[2][4];
|
||||||
|
|
||||||
static void InitLibraryName()
|
static void InitLibraryName()
|
||||||
|
|
|
@ -12,6 +12,7 @@ set(Output spu2x-2.0.0)
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-fvisibility=hidden
|
-fvisibility=hidden
|
||||||
-Wall
|
-Wall
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
|
@ -12,6 +12,7 @@ set(Output zerospu2)
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-Wall
|
-Wall
|
||||||
-msse2
|
-msse2
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
|
@ -19,6 +19,7 @@ set(CommonFlags
|
||||||
-Wno-unused-parameter
|
-Wno-unused-parameter
|
||||||
-Wno-unused-value
|
-Wno-unused-value
|
||||||
-Wunused-variable
|
-Wunused-variable
|
||||||
|
-Wno-write-strings
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OptimizationFlags
|
set(OptimizationFlags
|
||||||
|
|
Loading…
Reference in New Issue