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: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/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
  • -unavailable- added by rafaelff1 (Submitted the item)

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 20 Jan 2017 02:57:50 AM UTCrafaelff1Attached File-=>Added 0001-maint-mark-lang_wanted-as-pure-to-please-GCC.patch, #39515

    Back to the top

    Powered by Savane 3.1-cleanup1