mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
maint: make-prime-list: avoid -Wsuggest-attribute=const warning
* src/make-prime-list.c: Include <config.h>. (binvert): Add _GL_ATTRIBUTE_CONST.
This commit is contained in:
1 parent
1fb5db95aa
commit
cf67e4cc90
1 file changed
+3
-1
@@ -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 <config.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user