From a61abe755e3fc13b0aa835341fffd104f802fb8e Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 25 Mar 2018 09:59:12 +0200 Subject: [PATCH] Silenced warnings. --- MagickCore/opencl.c | 2 +- MagickCore/random.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.40.0