GNU bug report logs - #25491
[patch #9228] Fixes pure mark in lang_wanted()

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: idutils; Reported by: Rafael Fontenelle <INVALID.NOREPLY@HIDDEN>; Keywords: patch; dated Fri, 20 Jan 2017 04:09:01 UTC; Maintainer for idutils is bug-idutils@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Jan 2017 04:08:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 19 23:08:22 2017
Received: from localhost ([127.0.0.1]:35959 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cUQUw-0006oz-82
	for submit <at> debbugs.gnu.org; Thu, 19 Jan 2017 23:08:22 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46698)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <www-data@HIDDEN>) id 1cUPOw-0005CJ-HL
 for submit <at> debbugs.gnu.org; Thu, 19 Jan 2017 21:58:07 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <www-data@HIDDEN>) id 1cUPOn-0006K1-CM
 for submit <at> debbugs.gnu.org; Thu, 19 Jan 2017 21:58:01 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-201.4 required=5.0 tests=BAYES_50,FROM_SAVANNAH,
 RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37353)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <www-data@HIDDEN>)
 id 1cUPOn-0006Jx-9K
 for submit <at> debbugs.gnu.org; Thu, 19 Jan 2017 21:57:57 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37662)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <www-data@HIDDEN>) id 1cUPOl-0007yb-Ta
 for bug-idutils@HIDDEN; Thu, 19 Jan 2017 21:57:57 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <www-data@HIDDEN>) id 1cUPOh-0006HT-UD
 for bug-idutils@HIDDEN; Thu, 19 Jan 2017 21:57:55 -0500
Received: from savannah.gnu.org ([208.118.235.70]:35352
 helo=frontend.savannah.gnu.org)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <www-data@HIDDEN>) id 1cUPOh-0006HN-Qr
 for bug-idutils@HIDDEN; Thu, 19 Jan 2017 21:57:51 -0500
Received: by frontend.savannah.gnu.org (Postfix, from userid 33)
 id 758D785C68; Fri, 20 Jan 2017 02:57:51 +0000 (UTC)
To: Rafael Fontenelle <rafaelff@HIDDEN>, bug-idutils@HIDDEN
Subject: [patch #9228] Fixes pure mark in lang_wanted()
X-PHP-Originating-Script: 0:sendmail.php
From: Rafael Fontenelle <INVALID.NOREPLY@HIDDEN>
X-Savane-Server: savannah.gnu.org:443 [208.118.235.70]
MIME-Version: 1.0
Content-Type: text/plain;charset=UTF-8
X-Savane-Project: idutils
X-Savane-Tracker: patch
X-Savane-Item-ID: 9228
User-Agent: Mozilla/5.0 (X11;
 Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/55.0.2883.87 Safari/537.36
X-Apparently-From: 186.247.145.196 (Savane authenticated user rafaelff1)
Message-Id: <20170120-005750.sv87312.36566@HIDDEN>
References: 
In-Reply-To: 
Date: Fri, 20 Jan 2017 02:57:51 +0000 (UTC)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -8.2 (--------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 19 Jan 2017 23:08:21 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -8.2 (--------)

URL:
  <http://savannah.gnu.org/patch/?9228>

                 Summary: Fixes pure mark in lang_wanted()
                 Project: idutils
            Submitted by: rafaelff1
            Submitted on: Fri 20 Jan 2017 12:57:50 AM BRST
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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. 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 20 Jan 2017 12:57:50 AM BRST  Name:
0001-maint-mark-lang_wanted-as-pure-to-please-GCC.patch  Size: 792B   By:
rafaelff1

<http://savannah.gnu.org/patch/download.php?file_id=39515>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?9228>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





Acknowledgement sent to Rafael Fontenelle <INVALID.NOREPLY@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-idutils@HIDDEN. Full text available.
Report forwarded to bug-idutils@HIDDEN:
bug#25491; Package idutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.