File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 44# src/tools/pginclude/pgcompinclude
55
66trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a" 0 1 2 3 15
7- find . \( -name CVS -a -prune \) -o -name '*.h' -type f -print | while read FILE
7+ find . \( -name .git -a -prune \) -o -name '*.h' -type f -print | while read FILE
88do
99 sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a
1010 echo "#include \"postgres.h\"" >/tmp/$$.c
1313 echo "void include_test() {" >>/tmp/$$.c
1414 pgdefine "$FILE" >>/tmp/$$.c
1515 echo "}" >>/tmp/$$.c
16+ # Use -O1 to get warnings only generated by optimization,
17+ # but -O2 is too slow.
1618 cc -fsyntax-only -Werror -Wall -Wmissing-prototypes \
1719 -Wmissing-declarations -I/pg/include -I/pg/backend \
18- -I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -c /tmp/$$.c \
20+ -I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -O1 - c /tmp/$$.c \
1921 -o /tmp/$$.o >/tmp/$$ 2>&1
2022 if [ "$?" -ne 0 ]
2123 then echo "$FILE"
Original file line number Diff line number Diff line change 33# src/tools/pginclude/pgfixinclude
44
55trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
6- find . \( -name CVS -a -prune \) -o -type f -name '*.[chyls]' -print |
6+ find . \( -name .git -a -prune \) -o -type f -name '*.[chyls]' -print |
77while read FILE
88do
99 cat "$FILE" | grep "^#include" |
You can’t perform that action at this time.
0 commit comments