mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Moved compiler flags for warnings to retroshare.pri
This commit is contained in:
parent
3aaf1cd4d0
commit
c0e3e9b4e4
@ -28,11 +28,7 @@ DESTDIR = lib
|
||||
|
||||
!include("use_libbitdht.pri"):error("Including")
|
||||
|
||||
QMAKE_CXXFLAGS *= -Wall -DBE_DEBUG
|
||||
|
||||
# treat warnings as error for better removing
|
||||
#QMAKE_CFLAGS += -Werror
|
||||
#QMAKE_CXXFLAGS += -Werror
|
||||
QMAKE_CXXFLAGS *= -DBE_DEBUG
|
||||
|
||||
################################# Linux ##########################################
|
||||
linux-* {
|
||||
@ -84,10 +80,6 @@ win32 {
|
||||
# These have been replaced by _WIN32 && __MINGW32__
|
||||
#DEFINES *= WINDOWS_SYS WIN32 STATICLIB MINGW
|
||||
|
||||
# Switch on extra warnings
|
||||
QMAKE_CFLAGS += -Wextra
|
||||
QMAKE_CXXFLAGS += -Wextra
|
||||
|
||||
# Switch off optimization for release version
|
||||
QMAKE_CXXFLAGS_RELEASE -= -O2
|
||||
QMAKE_CXXFLAGS_RELEASE += -O0
|
||||
|
@ -18,10 +18,6 @@ DESTDIR = lib
|
||||
|
||||
QMAKE_CXXFLAGS += -fPIC
|
||||
|
||||
# treat warnings as error for better removing
|
||||
#QMAKE_CFLAGS += -Werror
|
||||
#QMAKE_CXXFLAGS += -Werror
|
||||
|
||||
## Uncomment to enable Unfinished Services.
|
||||
#CONFIG += wikipoos
|
||||
#CONFIG += gxsthewire
|
||||
@ -168,7 +164,7 @@ HEADERS += $$PUBLIC_HEADERS
|
||||
linux-* {
|
||||
CONFIG += link_pkgconfig
|
||||
|
||||
QMAKE_CXXFLAGS *= -Wall -D_FILE_OFFSET_BITS=64
|
||||
QMAKE_CXXFLAGS *= -D_FILE_OFFSET_BITS=64
|
||||
QMAKE_CC = $${QMAKE_CXX}
|
||||
|
||||
no_sqlcipher {
|
||||
@ -249,10 +245,6 @@ win32-g++|win32-clang-g++ {
|
||||
MOC_DIR = temp/moc
|
||||
!libretroshare_shared:DEFINES *= STATICLIB
|
||||
|
||||
# Switch on extra warnings
|
||||
QMAKE_CFLAGS += -Wextra
|
||||
QMAKE_CXXFLAGS += -Wextra
|
||||
|
||||
# Switch off optimization for release version
|
||||
QMAKE_CXXFLAGS_RELEASE -= -O2
|
||||
QMAKE_CXXFLAGS_RELEASE += -O0
|
||||
|
@ -8,7 +8,7 @@ CONFIG += staticlib
|
||||
|
||||
DEFINES *= OPENSSL_NO_IDEA
|
||||
|
||||
QMAKE_CXXFLAGS *= -Wall -Werror -W
|
||||
QMAKE_CXXFLAGS *= -Werror -W
|
||||
|
||||
TARGET = ops
|
||||
DESTDIR = lib
|
||||
|
@ -53,10 +53,6 @@ win32 {
|
||||
LIBS += -L"$$OUT_PWD/../../libretroshare/src/lib" -lretroshare
|
||||
}
|
||||
|
||||
# Switch on extra warnings
|
||||
QMAKE_CFLAGS += -Wextra
|
||||
QMAKE_CXXFLAGS += -Wextra
|
||||
|
||||
CONFIG(debug, debug|release) {
|
||||
} else {
|
||||
# Tell linker to use ASLR protection
|
||||
|
@ -77,8 +77,6 @@ macx {
|
||||
# ffmpeg (and libavutil: https://github.com/ffms/ffms2/issues/11)
|
||||
QMAKE_CXXFLAGS += -D__STDC_CONSTANT_MACROS
|
||||
|
||||
QMAKE_CXXFLAGS *= -Wall
|
||||
|
||||
SOURCES = VOIPPlugin.cpp \
|
||||
gui/VOIPConfigPanel.cpp \
|
||||
services/p3VOIP.cc \
|
||||
|
@ -217,10 +217,6 @@ win32-g++|win32-clang-g++ {
|
||||
CONFIG -= console
|
||||
}
|
||||
|
||||
# Switch on extra warnings
|
||||
QMAKE_CFLAGS += -Wextra
|
||||
QMAKE_CXXFLAGS += -Wextra
|
||||
|
||||
CONFIG(debug, debug|release) {
|
||||
} else {
|
||||
# Tell linker to use ASLR protection
|
||||
|
@ -607,6 +607,18 @@ profiling {
|
||||
QMAKE_LFLAGS *= -pg
|
||||
}
|
||||
|
||||
# Enable all warnings
|
||||
QMAKE_CFLAGS *= -Wall -Wextra
|
||||
QMAKE_CXXFLAGS *= -Wall -Wextra
|
||||
|
||||
# Disable unwanted warnings
|
||||
QMAKE_CFLAGS *= -Wno-misleading-indentation -Wno-dangling-else
|
||||
QMAKE_CXXFLAGS *= -Wno-misleading-indentation -Wno-dangling-else
|
||||
|
||||
# Treat warnings as error for better removing
|
||||
#QMAKE_CFLAGS += -Werror
|
||||
#QMAKE_CXXFLAGS += -Werror
|
||||
|
||||
################################################################################
|
||||
## Last goes platform specific statements common to all RetroShare subprojects #
|
||||
################################################################################
|
||||
|
@ -89,7 +89,7 @@ linux-* {
|
||||
INCLUDEPATH *= $${OPENPGPSDK_DIR} ../openpgpsdk
|
||||
|
||||
DESTDIR = lib
|
||||
QMAKE_CXXFLAGS *= -Wall -D_FILE_OFFSET_BITS=64
|
||||
QMAKE_CXXFLAGS *= -D_FILE_OFFSET_BITS=64
|
||||
QMAKE_CC = $${QMAKE_CXX}
|
||||
|
||||
SSL_DIR = /usr/include/openssl
|
||||
@ -172,10 +172,6 @@ win32 {
|
||||
DEFINES *= WINVER=0x0501
|
||||
DESTDIR = lib
|
||||
|
||||
# Switch on extra warnings
|
||||
QMAKE_CFLAGS += -Wextra
|
||||
QMAKE_CXXFLAGS += -Wextra
|
||||
|
||||
# Switch off optimization for release version
|
||||
QMAKE_CXXFLAGS_RELEASE -= -O2
|
||||
QMAKE_CXXFLAGS_RELEASE += -O0
|
||||
|
Loading…
Reference in New Issue
Block a user