Fix headerscheck and cpluspluscheck's exit codes.
authorThomas Munro <tmunro@postgresql.org>
Mon, 15 Aug 2022 22:53:29 +0000 (10:53 +1200)
committerThomas Munro <tmunro@postgresql.org>
Mon, 15 Aug 2022 22:53:29 +0000 (10:53 +1200)
commit3eae0cbf7e70db885c4ec37e0863022d3ad589d4
treefbd43c57fd5d83739fb9b64ab3f2a8f50937069f
parent75ca8c14576238926e1f4c2e80c11dd23a1911c3
Fix headerscheck and cpluspluscheck's exit codes.

For the benefit of CI, which started running these header check scripts
in its CompilerWarnings task in commit 81b9f23c9c8, they should report
failure if any individual header failed to compile.

Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA%2BhUKGKtDwPo9wzKgbStDwfOhEpywMc6PQofio8fAHR7yUjgxw%40mail.gmail.com
src/tools/pginclude/cpluspluscheck
src/tools/pginclude/headerscheck