libjpeg: silence warnings with clang as well as gcc
The check was broken anyways since the compiler filename is not guaranteed to be "gcc" in all cases when using GCC. Change-Id: I9f242ef26c6fea6d2fedda0391f8c7bef264f1ef Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>bb10
parent
2af3cb4436
commit
ae273bcf42
|
|
@ -7,10 +7,8 @@ DEFINES += \
|
|||
JPEG_LIB_VERSION=80 \
|
||||
SIZEOF_SIZE_T=__SIZEOF_SIZE_T__
|
||||
|
||||
#Disable warnings in 3rdparty code due to unused arguments
|
||||
contains(QMAKE_CC, gcc): {
|
||||
QMAKE_CFLAGS_WARN_ON += -Wno-unused-parameter -Wno-main
|
||||
}
|
||||
# Disable warnings in 3rdparty code due to unused arguments
|
||||
gcc: QMAKE_CFLAGS_WARN_ON += -Wno-unused-parameter -Wno-main
|
||||
|
||||
|
||||
INCLUDEPATH += $$PWD/libjpeg/src
|
||||
|
|
|
|||
Loading…
Reference in New Issue