Blame view

3rdparty/boost_1_81_0/tools/quickbook/build/warning-check 527 Bytes
73ef4ff3   Hu Chunming   提交三方库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  #!/usr/bin/env bash
  
  cd $(dirname $0)/../src
  
  tmpfile=$(tempfile)
  
  CXX=${CXX:-g++}
  BOOST_ROOT=${BOOST_ROOT:-../../..}
  
  failure=0
  
  for filename in *.cpp
  do
      set -x
      if ! $CXX -c -O0 --std=c++11 -isystem $BOOST_ROOT $filename -o $tmpfile \
          -pedantic -Wstrict-aliasing -fstrict-aliasing \
          -Werror -Wall -Wextra \
          -Wunused-parameter -Wshadow \
          -Wfloat-equal \
          -Wsign-promo -Wconversion -Wno-sign-conversion
      then
          failure=1
      fi
  
      set +x
  done
  
  rm $tmpfile
  exit $failure