From 92c79dc79e1154f15d6049961287e367fc43aab2 Mon Sep 17 00:00:00 2001 From: Francisco Javier Tsao Santín Date: Thu, 16 Feb 2017 20:08:40 +0100 Subject: Fixed 32 bit build with gcc7 (RH Bugzilla ID 1422989) --- misc-utils/hardlink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'misc-utils') diff --git a/misc-utils/hardlink.c b/misc-utils/hardlink.c index e661e5f0c..16d8163e2 100644 --- a/misc-utils/hardlink.c +++ b/misc-utils/hardlink.c @@ -67,12 +67,12 @@ typedef struct _f { char name[0]; } f; -inline unsigned int hash(off_t size, time_t mtime) +__attribute__((always_inline)) inline unsigned int hash(off_t size, time_t mtime) { return (size ^ mtime) & (NHASH - 1); } -inline int stcmp(struct stat *st1, struct stat *st2, int content_only) +__attribute__((always_inline)) inline int stcmp(struct stat *st1, struct stat *st2, int content_only) { if (content_only) return st1->st_size != st2->st_size; @@ -112,7 +112,7 @@ void usage(char *prog) unsigned int buf[NBUF]; char iobuf1[NIOBUF], iobuf2[NIOBUF]; -inline size_t add2(size_t a, size_t b) +__attribute__((always_inline)) inline size_t add2(size_t a, size_t b) { size_t sum = a + b; if (sum < a) { @@ -122,7 +122,7 @@ inline size_t add2(size_t a, size_t b) return sum; } -inline size_t add3(size_t a, size_t b, size_t c) +__attribute__((always_inline)) inline size_t add3(size_t a, size_t b, size_t c) { return add2(add2(a, b), c); } -- cgit v1.2.3-55-g7522