Skip to content
Snippets Groups Projects
Verified Commit 3631b159 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

nitpick: use KR_COLD when we have it

parent b398ec30
Branches
Tags
1 merge request!376misc nitpicks
......@@ -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))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment