소스 검색

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 년 전
부모
커밋
b42b41ad45
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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);