diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-03-17 22:27:09 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-03-17 22:27:09 +0200 |
commit | 93a817e1d94bf7227391b131b6df2d1f3e5176cc (patch) | |
tree | a313bb4d707ab7cd825bb7e61d6acbc5aeceaeee | |
parent | 8c76e6abfa7857da0ecb64cc545b5cbea2a0ca68 (diff) | |
download | egawk-93a817e1d94bf7227391b131b6df2d1f3e5176cc.tar.gz egawk-93a817e1d94bf7227391b131b6df2d1f3e5176cc.tar.bz2 egawk-93a817e1d94bf7227391b131b6df2d1f3e5176cc.zip |
Fix a compiler warning.
-rw-r--r-- | extension/ChangeLog | 5 | ||||
-rw-r--r-- | extension/inplace.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/extension/ChangeLog b/extension/ChangeLog index 749871dc..b10ff17d 100644 --- a/extension/ChangeLog +++ b/extension/ChangeLog @@ -1,3 +1,8 @@ +2015-03-17 Arnold D. Robbins <arnold@skeeve.com> + + * inplace.c (do_inplace_begin): Jump through more hoops to satisfy + a newer version of clang. + 2015-02-26 Arnold D. Robbins <arnold@skeeve.com> * Makefile.am (EXTRA_DIST): Add rwarray0.c to the list. diff --git a/extension/inplace.c b/extension/inplace.c index 0693ad92..e3685e30 100644 --- a/extension/inplace.c +++ b/extension/inplace.c @@ -171,10 +171,10 @@ do_inplace_begin(int nargs, awk_value_t *result) /* N.B. chown/chmod should be more portable than fchown/fchmod */ if (chown(state.tname, sbuf.st_uid, sbuf.st_gid) < 0) { - /* jumping through hoops to silence gcc. :-( */ + /* jumping through hoops to silence gcc and clang. :-( */ int junk; junk = chown(state.tname, -1, sbuf.st_gid); - junk = junk; + ++junk; } if (chmod(state.tname, sbuf.st_mode) < 0) |