Use -Wextra instead of -W for extra warnings
This commit is contained in:
parent
7d068054e6
commit
0f3e13ed7c
@ -444,7 +444,7 @@ static ALCboolean alsa_open_capture(ALCdevice *pDevice, const ALCchar *deviceNam
|
||||
strcmp(deviceName, alsaCaptureDeviceList[idx]) == 0)
|
||||
{
|
||||
if(idx > 0)
|
||||
sprintf(driver, "hw:%d,0", idx-1);
|
||||
sprintf(driver, "hw:%zd,0", idx-1);
|
||||
goto open_alsa;
|
||||
}
|
||||
}
|
||||
|
@ -51,15 +51,16 @@ SET(EXTRA_LIBS m ${EXTRA_LIBS})
|
||||
IF("${MSVC}")
|
||||
# ???
|
||||
ELSE()
|
||||
CHECK_C_COMPILER_FLAG(-W HAVE_W_SWITCH)
|
||||
IF("${HAVE_W_SWITCH}")
|
||||
ADD_DEFINITIONS(-W)
|
||||
ADD_DEFINITIONS(-Wall)
|
||||
CHECK_C_COMPILER_FLAG(-Wextra HAVE_W_EXTRA)
|
||||
IF("${HAVE_W_EXTRA}")
|
||||
ADD_DEFINITIONS(-Wextra)
|
||||
ENDIF()
|
||||
|
||||
ADD_DEFINITIONS(-Wall)
|
||||
IF(WERROR)
|
||||
ADD_DEFINITIONS(-Werror)
|
||||
ENDIF()
|
||||
|
||||
IF(DEBUG)
|
||||
ADD_DEFINITIONS(-g3)
|
||||
ELSEIF(NODEBUG)
|
||||
|
Loading…
Reference in New Issue
Block a user