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()

Submitted by:  Rafael Fontenelle <rafaelff1>
Submitted on:  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>

 

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.3