On Mar 21, 2014, at 9:42 PM, Krzysztof KosiĆski wrote:
2014-03-21 23:25 GMT+01:00 Johan Engelen <jbc.engelen@...2592...>:
Ouch..... It'd be great if some people could work on at least getting configure to work with -Werror.
-Werror should NEVER be enabled by default, as it is equivalent to explicitly disabling forward compatibility with compilers and libraries.
Actually...
Warnings as errors is generally considered as a very good practice for professional software houses. The recommendations and standard industry practices are usually to have it on by default and then turn it off for the specific cases where it is required.
In practice future-proofing the code is usually achieved by writing code that complies with the standards, and that works cross-platform. Occasionally third-party libs can get their headers wrapped up in other headers to proof them against warnings.
Given that I've seen this work with code originally written for Netware, it definitely can work with future proofing.