]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: avoid "attribute-const"-suggesting warning from gcc
authorJim Meyering <meyering@fb.com>
Mon, 18 Nov 2013 18:13:06 +0000 (10:13 -0800)
committerJim Meyering <meyering@fb.com>
Thu, 13 Mar 2014 17:15:28 +0000 (10:15 -0700)
commit4f211822dddd1777dc915f2df4e2ed3b65c68301
tree20f3720f58f76a988cb2980f10c14116c9bdb03b
parent42d2377b813507d50f5a67076bb20134ceb2fc10
maint: avoid "attribute-const"-suggesting warning from gcc

* gl/lib/fadvise.c: Use a pragma to turn off this warning option:
-Wsuggest-attribute=const.  Without this change, building with
--enable-gcc-warnings would evoke this error:

    lib/fadvise.c:25:1: error: function might be candidate for\
    attribute 'const' [-Werror=suggest-attribute=const]
gl/lib/fadvise.c