|
From: | Rafael Fontenelle |
Subject: | [bug-idutils] bug#25491: [patch #9228] Fixes pure mark in lang_wanted() |
Date: | Fri, 20 Jan 2017 02:57:51 +0000 (UTC) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 |
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/
[Prev in Thread] | Current Thread | [Next in Thread] |