According to Steffen Dettmer on 3/3/2010 6:33 AM:
what to do best here?
Not using -Werror
That's been the standard advice for years now.
Do I understand correctly that it is generally adviced to not use
the option -Werror?
Not quite. The advice is to not mix -Werror and configure.
Post-configure, you can use -Werror to your heart's content, and I do it
all the time in packages that I maintain. And it is even possible to let
configure check whether -Werror works, and if so, automatically add it to
CFLAGS. It's just that configure checks themselves are not guaranteed to
be warning-free, so converting warnings to errors during configure is a
recipe for disaster. In other words, the advice is that you shouldn't use
'./configure CFLAGS=-Werror'.
Don't do something if it hurts.
mmm... (I think the idea is to make a warning hurting to ensure
that it is fixed instantly and cannot be overseen / forgotten).
The problem is that no one has submitted a patch to make configure and
-Werror try to play nicely, until last month; and even then, it is not the
easiest thing in the world to do.