patchidutils - 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

Fri 20 Jan 2017 02:57:50 AM UTC, original submission:  

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.

Rafael Fontenelle <rafaelff1>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rafaelff1 (Submitted the item)
  •  

    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

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code