From: Jim Meyering Date: Wed, 19 Sep 2012 09:07:41 +0000 (+0200) Subject: maint: make-prime-list: avoid -Wsuggest-attribute=const warning X-Git-Tag: v8.20~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=v8.19-152-gcf67e4c;p=thirdparty%2Fcoreutils.git maint: make-prime-list: avoid -Wsuggest-attribute=const warning * src/make-prime-list.c: Include . (binvert): Add _GL_ATTRIBUTE_CONST. --- diff --git a/src/make-prime-list.c b/src/make-prime-list.c index 1f5b3ce11f..724924b40c 100644 --- a/src/make-prime-list.c +++ b/src/make-prime-list.c @@ -17,6 +17,8 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. */ +#include + #include #include #include @@ -29,7 +31,7 @@ struct prime uintmax_t lim; /* floor(UINTMAX_MAX / p) */ }; -static uintmax_t +static uintmax_t _GL_ATTRIBUTE_CONST binvert (uintmax_t a) { uintmax_t x = 0xf5397db1 >> (4*((a/2) & 0x7));