]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 24 Nov 2013 15:15:16 +0000 (15:15 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 24 Nov 2013 15:15:16 +0000 (15:15 +0000)
MagickCore/opencl-private.h

index 03ff401a59a32cb52bda0f845094004db67b5bc3..4075d4e542ccad148a610929b29320e6b85d10fb 100644 (file)
@@ -102,15 +102,15 @@ extern MagickExport void
 static inline void OpenCLLogException(const char* function, 
                         const unsigned int line, 
                         ExceptionInfo* exception) {
-#ifdef ACCELERATE_LOG_EXCEPTION
   if (exception->severity!=0) {
     char message[MaxTextExtent];
     /*  dump the source into a file */
     (void) FormatLocaleString(message,MaxTextExtent,"%s:%d Exception(%d)"
       ,function,line,exception->severity);
+#ifdef ACCELERATE_LOG_EXCEPTION
     OpenCLLog(message);
-  }
 #endif
+  }
 }
 
 #if defined(__cplusplus) || defined(c_plusplus)