提交 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.
RUN \
set -x \
&& apt-get update \
&& apt-get install --yes \
wget curl subversion screen gcc g++ cmake ninja-build golang autoconf \
libtool apache2 python-dev pkg-config zlib1g-dev libgcrypt11-dev \
bash-completion wget curl subversion screen gcc g++ cmake ninja-build golang \
autoconf libtool apache2 python-dev pkg-config zlib1g-dev libgcrypt11-dev \
libgss-dev libssl-dev libxml2-dev ragel nasm libarchive-dev make bear \
automake libdbus-1-dev libboost-dev autoconf-archive bash-completion \
python-yaml jq
......
......@@ -21,12 +21,12 @@
{
'Release':
{
'cflags': [ '-g' ]
'cflags': [ '-g', '-Wno-unknown-warning-option' ]
},
'Debug':
{
'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':
{
'GCC_OPTIMIZATION_LEVEL': '0'
......
......@@ -239,10 +239,7 @@
}],
[ 'OS in "linux freebsd"', {
'ldflags':
[
'-Wl,--whole-archive <(libopenssl) -Wl,--no-whole-archive'
]
'ldflags': [ '-Wl,--whole-archive <(libopenssl) -Wl,--no-whole-archive' ]
}],
[ 'OS in "freebsd"', {
......@@ -250,7 +247,7 @@
}],
[ '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"', {
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论