From: Vladimír Čunát Date: Mon, 25 Sep 2017 12:37:21 +0000 (+0200) Subject: nitpick: use KR_COLD when we have it X-Git-Tag: v1.99.1-alpha~7^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3631b159c19909026039c5e08913b7106bf95ab6;p=thirdparty%2Fknot-resolver.git nitpick: use KR_COLD when we have it --- diff --git a/lib/defines.h b/lib/defines.h index b74a16d33..9fd45b6bd 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -46,7 +46,7 @@ typedef unsigned int uint; */ #define kr_ok() 0 /* Mark as cold to mark all branches as unlikely. */ -static inline int __attribute__((__cold__)) kr_error(int x) { +static inline int KR_COLD kr_error(int x) { return -abs(x); } #define kr_strerror(x) strerror(abs(x))