Re: configure error when CFLAGS='-Wall -Werror

2024-06-20 Thread Tom Lane
Andy Fan writes: > I relies on some compiler's check to reduce some simple coding issues, I > use clang 18.1.6 for now. however "CFLAGS='-Wall -Werror ' ./configure" > would fail, Nope, you cannot do that: -Werror breaks many of configure's tests. See

configure error when CFLAGS='-Wall -Werror

2024-06-20 Thread Andy Fan
Hi, I relies on some compiler's check to reduce some simple coding issues, I use clang 18.1.6 for now. however "CFLAGS='-Wall -Werror ' ./configure" would fail, and if I run ' ./configure' directly, it is OK. I'm not sure why it happens. More details is below: (master)> echo $CC clang