From 759980c7f8d4b20a231768796abe50314f4a8d4c Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 18 Feb 2014 17:56:20 +0100 Subject: comment on unused-result warning of fchown() --- src/ring.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ring.cpp b/src/ring.cpp index 9ce58e9..c5df8e3 100644 --- a/src/ring.cpp +++ b/src/ring.cpp @@ -441,7 +441,11 @@ Ring::save(const gchar *filename) #ifdef G_OS_UNIX /* * only a good try to inherit owner since process user must have - * CHOWN capability traditionally reserved to root only + * CHOWN capability traditionally reserved to root only. + * That's why we don't handle the return value and are spammed + * with unused-result warnings by GCC. There is NO sane way to avoid + * this warning except, adding -Wno-unused-result which disabled all + * such warnings. */ fchown(fileno(file), file_stat.st_uid, file_stat.st_gid); #endif -- cgit v1.2.3