Post Reply 
Asking HP to open source HP calculator software and patents
11-20-2018, 08:58 PM
Post: #32
RE: Asking HP to open source HP calculator software and patents
(11-20-2018 08:30 PM)Thomas Okken Wrote:  I haven't run into this problem myself yet, but a couple of people who maintain Free42 ports have reported builds failing because of warnings being treated as errors where they didn't used to be.

If that is caused by -Werror being the default in the latest gcc, then that's pretty awful. Gcc has no -Wno-error with which to override -Werror completely; it only has -Wno-error=<warning-name>, for overriding -Werror for specific warnings.

Whether it's a change in gcc or in the default build settings enforced by some package builders, it's an awful idea, because it's breaking legacy software left and right. Upgrading your compiler should not cause your builds to fail.

In the case of "error: static declaration of 'sp' follows non-static declaration", it's undefined behaviour (ref. 6.2.2 Linkages of identifiers, particularly paragraph 7), and I think it makes more sense to treat it as an error rather than a warning, otherwise the linkage of 'sp' would be unclear.

— Ian Abbott
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Asking HP to open source HP calculator software and patents - ijabbott - 11-20-2018 08:58 PM



User(s) browsing this thread: 1 Guest(s)