summaryrefslogtreecommitdiffstats
path: root/src/glsl/ralloc.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2012-10-23 13:30:09 -0700
committerMatt Turner <[email protected]>2012-10-25 10:47:43 -0700
commit41b14d125196e75cdd4599a4c1069b41e7000d48 (patch)
treea45461ed91a47dcd74ecec8530b7cc8cfce7a67d /src/glsl/ralloc.c
parentec57fbbc72b552a4f894f32798a2ace16749f520 (diff)
ralloc: Annotate printf functions with PRINTFLIKE(...)
Catches problems such as (in the gles3 branch) glcpp-parse.y: In function '_glcpp_parser_handle_version_declaration': glcpp-parse.y:1990:39: warning: format '%lli' expects argument of type 'long long int', but argument 4 has type 'int' [-Wformat] As a side-effect, remove ralloc.c's likely/unlikely macros and just use the ones from main/compiler.h. NOTE: This is a candidate for the release branches. Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ralloc.c')
-rw-r--r--src/glsl/ralloc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/glsl/ralloc.c b/src/glsl/ralloc.c
index 3da09b55929..59e71c48b00 100644
--- a/src/glsl/ralloc.c
+++ b/src/glsl/ralloc.c
@@ -41,14 +41,6 @@ _CRTIMP int _vscprintf(const char *format, va_list argptr);
#include "ralloc.h"
-#ifdef __GNUC__
-#define likely(x) __builtin_expect(!!(x),1)
-#define unlikely(x) __builtin_expect(!!(x),0)
-#else
-#define likely(x) !!(x)
-#define unlikely(x) !!(x)
-#endif
-
#ifndef va_copy
#ifdef __va_copy
#define va_copy(dest, src) __va_copy((dest), (src))