|
From: | Bob Friesenhahn |
Subject: | Re: Help with -Werror |
Date: | Wed, 24 Apr 2019 14:46:15 -0500 (CDT) |
User-agent: | Alpine 2.20 (GSO 67 2015-01-07) |
On Wed, 24 Apr 2019, Phillip Susi wrote:
For the most part, -Werror is a developer tool which will only cause problems for users, so my strong recommendation is that it should never appear in package releases, but not everybody subscribes to that philosophy...I am tempted to switch it off... on the other hand, the previous maintainer probably had a good reason for putting it in, so I would prefer to just switch it off for BUILT_SOURCES. Any idea how to do that?
One possibility would be to add configure support for --enable-maintainer-mode and then change the defaults when it is enabled. Another possiblity is to add a configure option to enable the option, which developers should always enable.
Without -Werror baked in, a maintainer/developer should normally strive to eliminate any warnings which do appear. These are not usually difficult to notice when the build is in non-verbose mode.
Unless you have the ability and commitment to test 100% of the permutations under which your software will be built, then you should not use -Werror in the default build since many users will not know what to do if the build fails.
Typically developers use recent vintages of operating systems and compilers and they have little exposure to somewhat older operating systems and compilers where a warning might appear.
Bob -- Bob Friesenhahn address@hidden, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt
[Prev in Thread] | Current Thread | [Next in Thread] |