提交 03cf2cd3 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Avoid some gcc warnings

上级 aad1fa2d
FROM ubuntu:16.04 FROM ubuntu:18.10
# Install dependencies. # Install dependencies.
RUN \ RUN \
set -x \ set -x \
&& apt-get update \ && apt-get update \
&& apt-get install --yes \ && apt-get install --yes \
wget curl subversion screen gcc g++ cmake ninja-build golang autoconf \ bash-completion wget curl subversion screen gcc g++ cmake ninja-build golang \
libtool apache2 python-dev pkg-config zlib1g-dev libgcrypt11-dev \ autoconf libtool apache2 python-dev pkg-config zlib1g-dev libgcrypt11-dev \
libgss-dev libssl-dev libxml2-dev ragel nasm libarchive-dev make bear \ libgss-dev libssl-dev libxml2-dev ragel nasm libarchive-dev make bear \
automake libdbus-1-dev libboost-dev autoconf-archive bash-completion \ automake libdbus-1-dev libboost-dev autoconf-archive bash-completion \
python-yaml jq python-yaml jq
......
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
{ {
'Release': 'Release':
{ {
'cflags': [ '-g' ] 'cflags': [ '-g', '-Wno-unknown-warning-option' ]
}, },
'Debug': 'Debug':
{ {
'defines': [ 'DEBUG', 'MS_LOG_TRACE', 'MS_LOG_FILE_LINE' ], 'defines': [ 'DEBUG', 'MS_LOG_TRACE', 'MS_LOG_FILE_LINE' ],
'cflags': [ '-g', '-O0', '-fwrapv', '-Wno-parentheses-equality' ], 'cflags': [ '-g', '-O0', '-fwrapv', '-Wno-parentheses-equality', '-Wno-unknown-warning-option' ],
'xcode_settings': 'xcode_settings':
{ {
'GCC_OPTIMIZATION_LEVEL': '0' 'GCC_OPTIMIZATION_LEVEL': '0'
......
...@@ -239,10 +239,7 @@ ...@@ -239,10 +239,7 @@
}], }],
[ 'OS in "linux freebsd"', { [ 'OS in "linux freebsd"', {
'ldflags': 'ldflags': [ '-Wl,--whole-archive <(libopenssl) -Wl,--no-whole-archive' ]
[
'-Wl,--whole-archive <(libopenssl) -Wl,--no-whole-archive'
]
}], }],
[ 'OS in "freebsd"', { [ 'OS in "freebsd"', {
...@@ -250,7 +247,7 @@ ...@@ -250,7 +247,7 @@
}], }],
[ 'OS != "win"', { [ 'OS != "win"', {
'cflags': [ '-std=c++11', '-Wall', '-Wextra', '-Wno-unused-parameter' ] 'cflags': [ '-std=c++11', '-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-implicit-fallthrough' ]
}], }],
[ 'OS == "mac"', { [ 'OS == "mac"', {
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论