]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/quickbook/build/warning-check
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / quickbook / build / warning-check
1 #!/usr/bin/env bash
2
3 cd $(dirname $0)/../src
4
5 tmpfile=$(tempfile)
6
7 CXX=${CXX:-g++}
8 BOOST_ROOT=${BOOST_ROOT:-../../..}
9
10 failure=0
11
12 for filename in *.cpp
13 do
14 set -x
15 if ! $CXX -c -O0 -isystem $BOOST_ROOT $filename -o $tmpfile \
16 -pedantic -Wstrict-aliasing -fstrict-aliasing \
17 -Werror -Wall -Wextra \
18 -Wunused-parameter -Wshadow \
19 -Wfloat-equal \
20 -Wsign-promo -Wconversion -Wno-sign-conversion
21 then
22 failure=1
23 fi
24
25 set +x
26 done
27
28 rm $tmpfile
29 exit $failure