diff --git a/magick/threshold.c b/magick/threshold.c
index cae65f1..53fdf84 100644
--- a/magick/threshold.c
+++ b/magick/threshold.c
@@ -1626,6 +1626,9 @@
 {
 #define ThresholdImageTag  "Threshold/Image"
 
+  CacheView
+    *image_view;
+
   GeometryInfo
     geometry_info;
 
@@ -1647,10 +1650,7 @@
     max_threshold;
 
   RandomInfo
-    **random_info;
-
-  CacheView
-    *image_view;
+    **restrict random_info;
 
   assert(image != (Image *) NULL);
   assert(image->signature == MagickSignature);