From 71e722ea2088a0e2980e14beec0abcd62e288ea2 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 4 Jun 2016 18:51:44 +0200 Subject: [PATCH] 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). --- src/utils_curl_stats.h | 1 - 1 file changed, 1 deletion(-) 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); -- 2.11.0