From: Sebastian Harl Date: Sat, 4 Jun 2016 16:51:44 +0000 (+0200) Subject: utils_curl_stats: Drop the nonnull attribute from curl_stats_from_config. X-Git-Tag: collectd-5.6.0~220^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=71e722ea2088a0e2980e14beec0abcd62e288ea2;p=collectd.git utils_curl_stats: Drop the nonnull attribute from curl_stats_from_config. It's not overly useful after all but generates false compiler warnings / errors on Xenial using CLANG, since we also check the parameter in the function (which is what we want in the end and there's no risk in actually calling it with a NULL value). --- diff --git a/src/utils_curl_stats.h b/src/utils_curl_stats.h index 69927f77..f708c629 100644 --- a/src/utils_curl_stats.h +++ b/src/utils_curl_stats.h @@ -43,7 +43,6 @@ typedef struct curl_stats_s curl_stats_t; * * See http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html */ -__attribute__((nonnull(1))) curl_stats_t *curl_stats_from_config (oconfig_item_t *ci); void curl_stats_destroy (curl_stats_t *s);