1 Star 1 Fork 0

crazyi/KDChart

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
g++.pri 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
Allen Winter 提交于 2020-01-08 11:50 . g++.pri - build with std=c++11
*-g++* {
NORMAL_CFLAGS = -Wno-long-long
win32-g++ {
NORMAL_CFLAGS += -U__STRICT_ANSI__
}
NORMAL_CXXFLAGS = \
-Wnon-virtual-dtor -Wundef -Wcast-align \
-Wchar-subscripts -Wpointer-arith \
-Wwrite-strings -Wformat -Wformat-security \
-Wmissing-format-attribute -Woverloaded-virtual -std=c++11
# -Wconversion gives too many warnings from Qt-4.4.3 with gcc-4.3.2 (was fine with gcc-4.2.4), so removing it
# Qt-4.2 has tools/designer/src/lib/uilib/ui4_p.h:263: error: comma at end of enumerator list
!contains($$list($$[QT_VERSION]), 4.2.*) {
NORMAL_CFLAGS += -pedantic
}
# Increase the debugging level from Qt's default
CONFIG(debug, debug|release) {
NORMAL_CXXFLAGS += -O0 -g3
NORMAL_CXXFLAGS -= -g
}
USABLE_CXXFLAGS = -Wold-style-cast
HARD_CXXFLAGS = -Weffc++ -Wshadow
PITA_CXXFLAGS = -Wunreachable-code
QMAKE_CFLAGS += $$NORMAL_CFLAGS
QMAKE_CXXFLAGS += $$NORMAL_CFLAGS $$NORMAL_CXXFLAGS
kdab:QMAKE_CFLAGS_WARN_ON += $$NORMAL_CFLAGS -Werror
kdab:QMAKE_CXXFLAGS_WARN_ON += $$NORMAL_CFLAGS $$NORMAL_CXXFLAGS -Werror
#QMAKE_CXXFLAGS_WARN_ON += $$USABLE_CXXFLAGS
#QMAKE_CXXFLAGS_WARN_ON += $$HARD_CXXFLAGS # headers must compile with this, code doesn't need to; needs patched Qt
#QMAKE_CXXFLAGS_WARN_ON += $$PITA_CXXFLAGS # header would be nice, but it's probably pointless, due to noise from Qt and libstdc++
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/crazyi/KDChart.git
[email protected]:crazyi/KDChart.git
crazyi
KDChart
KDChart
master

搜索帮助