]> granicus.if.org Git - imagemagick/commitdiff
Silenced warnings.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 25 Mar 2018 07:59:12 +0000 (09:59 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 25 Mar 2018 07:59:12 +0000 (09:59 +0200)
MagickCore/opencl.c
MagickCore/random.c

index 0aa3e3c7e90a598e8aa7c976f6a7f460edff62ed..f56a7cae0b0757f868b8ba83a457a05b2bd6fc65 100644 (file)
@@ -663,7 +663,7 @@ MagickPrivate cl_command_queue AcquireOpenCLCommandQueue(MagickCLDevice device)
   else
   {
     UnlockSemaphoreInfo(device->lock);
-    properties=(cl_command_queue_properties) NULL;
+    properties=0;
     if (device->profile_kernels != MagickFalse)
       properties=CL_QUEUE_PROFILING_ENABLE;
     queue=openCL_library->clCreateCommandQueue(device->context,
index ef8a9effd7d0c0ce25d7e3a457b14a8defcfd89d..1dab0f2e7e7c249dbbf064b6a7dade0d5eb1b3b2 100644 (file)
@@ -284,7 +284,7 @@ MagickExport RandomInfo *DestroyRandomInfo(RandomInfo *random_info)
   if (random_info->signature_info != (SignatureInfo *) NULL)
     random_info->signature_info=DestroySignatureInfo(
       random_info->signature_info);
-  (void) memset(random_info->seed,0,sizeof(*random_info->seed));
+  (void) memset(random_info->seed,0,sizeof(random_info->seed));
   random_info->signature=(~MagickCoreSignature);
   UnlockSemaphoreInfo(random_info->semaphore);
   RelinquishSemaphoreInfo(&random_info->semaphore);