diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2018-08-29 11:22:33 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:54:54 +0000 |
commit | 1c28ab460287c0f90646b8f373c6e83ac79db6fd (patch) | |
tree | 6f7d4df17eb2121a4d097fafca6a396e68fae580 /utils/Utils.cpp | |
parent | cf3fe9403d8961caf9c9276ce7231c0f45cfe223 (diff) | |
download | ComputeLibrary-1c28ab460287c0f90646b8f373c6e83ac79db6fd.tar.gz |
COMPMID-1543: Unable to include ImageLoader.h in multiple object files
Removed STB_IMAGE_IMPLEMENTATION from the ImageLoader.h header and moved it to utils/Utils.cpp
Change-Id: Ic41efd723c0c07d3ede86872fad411f2ffc5f162
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/145989
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'utils/Utils.cpp')
-rw-r--r-- | utils/Utils.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 |