https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69833
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Something like: #!/bin/sh .../cc1plus -quiet ...opts... -fsanitize=address -Werror=maybe-uninitialized pr69833.ii 2>&1 | awk '/may be used uninitialized in this function/{seen=seen+1;next}/error:/{exit 1}END{if (seen != 1)exit 1}' if ! test $? == 0; then exit 1 fi .../cc1plus -quiet ...opts... -fno-sanitize=address -Werror=maybe-uninitialized pr69833.ii 2>&1 | awk '/error:/{exit 1}' if ! test $? == 0; then exit 1 fi ? For creduce, for delta replace pr69833.ii with $1 .