aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/ImageLoader.h1
-rw-r--r--utils/Utils.cpp6
2 files changed, 6 insertions, 1 deletions
diff --git a/utils/ImageLoader.h b/utils/ImageLoader.h
index cc9619d3f1..24fcbe179a 100644
--- a/utils/ImageLoader.h
+++ b/utils/ImageLoader.h
@@ -33,7 +33,6 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch-default"
-#define STB_IMAGE_IMPLEMENTATION
#include "stb/stb_image.h"
#pragma GCC diagnostic pop
diff --git a/utils/Utils.cpp b/utils/Utils.cpp
index 057d309b2e..1d086765b3 100644
--- a/utils/Utils.cpp
+++ b/utils/Utils.cpp
@@ -28,6 +28,12 @@
#include <iomanip>
#include <string>
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wswitch-default"
+#define STB_IMAGE_IMPLEMENTATION
+#include "stb/stb_image.h"
+#pragma GCC diagnostic pop
+
namespace arm_compute
{
namespace utils