Skip to content

Commit 001b2d8

Browse files
authored
MagickUtils: Add #pragma to silence IM6 warning
1 parent 73d1689 commit 001b2d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/MagickUtilities.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232

3333
#ifdef USE_IMAGEMAGICK
3434

35+
// Exclude a warning message with IM6 headers
36+
#pragma GCC diagnostic push
37+
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
3538
#include "Magick++.h"
39+
#pragma GCC diagnostic pop
3640

3741
// Determine ImageMagick version, as IM7 isn't fully
3842
// backwards compatible

0 commit comments

Comments
 (0)