diff options
author | Chris Robinson <[email protected]> | 2007-12-06 23:57:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-06 23:57:14 -0800 |
commit | 0f3e13ed7c54b21629ee6bbe749ceaab5e4bb6fb (patch) | |
tree | 36b92c7901b63c089609910c7e273c860a5b8e31 | |
parent | 7d068054e69433000bcc113e3affde25ac8dc75c (diff) |
Use -Wextra instead of -W for extra warnings
-rw-r--r-- | Alc/alsa.c | 2 | ||||
-rw-r--r-- | CMakeLists.txt | 9 |
2 files changed, 6 insertions, 5 deletions
@@ -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; } } diff --git a/CMakeLists.txt b/CMakeLists.txt index b5721a0e..fc8e2c5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |