idutils - Patches: patch #9228, Fixes pure mark in lang_wanted()
You are not allowed to post comments on this tracker with your current authentication level.
patch #9228: Fixes pure mark in lang_wanted()
Submitter: | Rafael Fontenelle <rafaelff1> | ||
Submitted: | Fri 20 Jan 2017 02:57:50 AM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | None | Privacy: | Public |
Assigned to: | None | Open/Closed: | Open |
Attached Files
file #39515: 0001-maint-mark-lang_wanted-as-pure-to-please-GCC.patch added by rafaelff1 (792B - text/x-patch)
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2017-01-20 | rafaelff1 | Attached File | - | ![]() |
Added 0001-maint-mark-lang_wanted-as-pure-to-please-GCC.patch, #39515 |
In current GCC, build will fail with the following output:
CC walker.o
walker.c: In function 'lang_wanted':
walker.c:481:1: error: function might be candidate for attribute 'pure' if it is known to return normally [-Werror=suggest-attribute=pure]
lang_wanted (char const *lang_name)
^~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: * [Makefile:1500: walker.o] Error 1
A solution is to add _GL_ATTRIBUTE_PURE to lang_wanted().
See attached patch.