X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fregistry_url.h;h=5ac52f5a5512cf24c08386aa8779ccf98844d35c;hb=909e26f825bc1f6f907231761412c885331fec7e;hp=50bd2497e220961131986975fead9e7dc82cac13;hpb=e19a4bde0a748b18339483df2a03a45430dbec4c;p=netdata.git diff --git a/src/registry_url.h b/src/registry_url.h index 50bd2497..5ac52f5a 100644 --- a/src/registry_url.h +++ b/src/registry_url.h @@ -22,11 +22,11 @@ typedef struct registry_url REGISTRY_URL; // REGISTRY_URL INDEX extern int registry_url_compare(void *a, void *b); -extern REGISTRY_URL *registry_url_index_del(REGISTRY_URL *u) __attribute__((warn_unused_result)); -extern REGISTRY_URL *registry_url_index_add(REGISTRY_URL *u) __attribute__((returns_nonnull, warn_unused_result)); +extern REGISTRY_URL *registry_url_index_del(REGISTRY_URL *u) WARNUNUSED; +extern REGISTRY_URL *registry_url_index_add(REGISTRY_URL *u) NEVERNULL WARNUNUSED; // REGISTRY_URL MANAGEMENT -extern REGISTRY_URL *registry_url_get(const char *url, size_t urllen) __attribute__((returns_nonnull)); +extern REGISTRY_URL *registry_url_get(const char *url, size_t urllen) NEVERNULL; extern void registry_url_link(REGISTRY_URL *u); extern void registry_url_unlink(REGISTRY_URL *u);