aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-02-18 17:56:20 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-02-18 17:56:20 +0100
commit759980c7f8d4b20a231768796abe50314f4a8d4c (patch)
treec889c500223899f1f8b6d254d198b1111bf8466b /src/ring.cpp
parent793f801a5ccc76645e569adb971eeced67e763be (diff)
downloadsciteco-759980c7f8d4b20a231768796abe50314f4a8d4c.tar.gz
comment on unused-result warning of fchown()
Diffstat (limited to 'src/ring.cpp')
-rw-r--r--src/ring.cpp6
1 files changed, 5 insertions, 1 deletions
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