Commit 37922da74 for imagemagick.org
commit 37922da74f8616a93d9a4a2a453920f9413680ed
Author: Andrey Semashev <Lastique@users.noreply.github.com>
Date: Wed Dec 24 19:24:32 2025 +0300
Fix warnings about operations on volatiles that are deprecated in C++20. (#8502)
The warnings are emitted by gcc 13.3 when ImageMagick is compiled in
C++20 or later mode. The variables need not be volatile anyway.
diff --git a/Magick++/tests/attributes.cpp b/Magick++/tests/attributes.cpp
index 1f5edff56..3062c4045 100644
--- a/Magick++/tests/attributes.cpp
+++ b/Magick++/tests/attributes.cpp
@@ -19,7 +19,7 @@ int main( int /*argc*/, char ** argv)
// Initialize ImageMagick install location for Windows
MagickPlusPlusGenesis genesis(*argv);
- volatile int failures=0;
+ int failures=0;
try {
diff --git a/Magick++/tests/exceptions.cpp b/Magick++/tests/exceptions.cpp
index 4d65bbbb4..a8186639c 100644
--- a/Magick++/tests/exceptions.cpp
+++ b/Magick++/tests/exceptions.cpp
@@ -18,7 +18,7 @@ int main( int /*argc*/, char ** argv)
// Initialize ImageMagick install location for Windows
MagickPlusPlusGenesis genesis(*argv);
- volatile int failures=0;
+ int failures=0;
cout << "Checking for working exceptions (may crash) ... ";
cout.flush();