From: Dirk Lemstra Date: Sun, 25 Mar 2018 07:59:12 +0000 (+0200) Subject: Silenced warnings. X-Git-Tag: 7.0.7-28~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a61abe755e3fc13b0aa835341fffd104f802fb8e;p=imagemagick Silenced warnings. --- diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c index 0aa3e3c7e..f56a7cae0 100644 --- a/MagickCore/opencl.c +++ b/MagickCore/opencl.c @@ -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, diff --git a/MagickCore/random.c b/MagickCore/random.c index ef8a9effd..1dab0f2e7 100644 --- a/MagickCore/random.c +++ b/MagickCore/random.c @@ -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);