summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-04-23 23:24:34 +0200
committerThomas Haller <thaller@redhat.com>2015-06-17 15:28:01 +0200
commitb4a88db19e19fbda07edf41fa000579d18dff9b0 (patch)
tree46db1688a1403b44242cc55941cbdd48a4f1d0f0
parent251193490a2ec826e0f84500cd51ea0b69bd1a3e (diff)
downloadNetworkManager-b4a88db19e19fbda07edf41fa000579d18dff9b0.tar.gz
core: remove G_GNUC_WARN_UNUSED_RESULT from ASSERT_VALID_PATH_COMPONENT()
ASSERT_VALID_PATH_COMPONENT() always returns the input argument -- unless it fails an assertion and terminates the program. No need to require the user to use the return value. (cherry picked from commit 63bb33b5346b431d92e413b8bc6bafc50c8ff9b7)
-rw-r--r--src/NetworkManagerUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NetworkManagerUtils.h b/src/NetworkManagerUtils.h
index c2d4948a4d..3bd7252876 100644
--- a/src/NetworkManagerUtils.h
+++ b/src/NetworkManagerUtils.h
@@ -173,7 +173,7 @@ gint64 nm_utils_get_monotonic_timestamp_us (void);
gint64 nm_utils_get_monotonic_timestamp_ms (void);
gint32 nm_utils_get_monotonic_timestamp_s (void);
-const char *ASSERT_VALID_PATH_COMPONENT (const char *name) G_GNUC_WARN_UNUSED_RESULT;
+const char *ASSERT_VALID_PATH_COMPONENT (const char *name);
const char *nm_utils_ip6_property_path (const char *ifname, const char *property);
const char *nm_utils_ip4_property_path (const char *ifname, const char *property);