Browse Source

Declare checkErr static, since it is only used in clinfo.c.

(Plus, it now compiles with clang, which seems to be buggy since it wont compile a function that is "inline" but not "static").
Cyril Roelandt 13 years ago
parent
commit
b42b41ad45
1 changed files with 1 additions and 2 deletions
  1. 1 2
      socl/examples/clinfo/clinfo.c

+ 1 - 2
socl/examples/clinfo/clinfo.c

@@ -20,8 +20,7 @@
 
 #include <CL/cl.h>
 
-inline 
-void 
+static inline void 
 checkErr(cl_int err, const char * name) {
     if (err != CL_SUCCESS) {
         fprintf(stderr, "ERROR: %s (%d)\n", name, err);