summaryrefslogtreecommitdiffstats
path: root/src/ranlib.c
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2007-02-05 22:12:41 +0000
committerUlrich Drepper <[email protected]>2007-02-05 22:12:41 +0000
commit93ab56f74c463b3817e73ab5319054abacfe0a95 (patch)
tree8ed3b3bcd85fe77ae544930a7a6fbcef1c3b4e53 /src/ranlib.c
parentddfbb6460d8888414a9ae75b7e863f9d5f34112e (diff)
Fix warnings.elfutils-0.126
Diffstat (limited to 'src/ranlib.c')
-rw-r--r--src/ranlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranlib.c b/src/ranlib.c
index 9a884cb1..d86a8e39 100644
--- a/src/ranlib.c
+++ b/src/ranlib.c
@@ -289,7 +289,7 @@ handle_file (const char *fname)
original file has. */
|| fchmod (newfd, st.st_mode & ALLPERMS) != 0
/* Never complain about fchown failing. */
- || (fchown (newfd, st.st_uid, st.st_gid),
+ || (({asm ("" :: "r" (fchown (newfd, st.st_uid, st.st_gid))); }),
close (newfd) != 0)
|| (newfd = -1, rename (tmpfname, fname) != 0))
goto nonew_unlink;