]> err.no Git - systemd/commitdiff
gcc: disable warn_unused_result attribute warnings
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Jun 2010 21:47:59 +0000 (23:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 17 Jun 2010 21:47:59 +0000 (23:47 +0200)
configure.ac
src/path-lookup.c

index 1d358d2c88cad6ae2376e66824117e640e0ccbdf..6e28bfcad013e872c02459ef7f51c6d5afa06771 100644 (file)
@@ -80,6 +80,7 @@ CC_CHECK_CFLAGS_APPEND([ \
         -Wno-overlength-strings \
         -Wno-unused-parameter \
         -Wno-missing-field-initializers \
+        -Wno-unused-result \
         -Wp,-D_FORTIFY_SOURCE=2 \
         -ffast-math \
         -fno-common \
index 7a5b9b813e0a02610421c22c8faa5a725700dc9c..093e04de37d02d61566cb0b44be3379d0c440da5 100644 (file)
@@ -96,7 +96,7 @@ static char** session_dirs(void) {
                  * one. */
 
                 mkdir_parents(data_home, 0777);
-                symlink("../../../.config/systemd/session", data_home);
+                (void) symlink("../../../.config/systemd/session", data_home);
         }
 
         if ((e = getenv("XDG_DATA_DIRS")))