Skip to content

Commit 59279c6

Browse files
committed
exif: Fix exiv2 error on macOS.
1 parent fe2b6f9 commit 59279c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/common/exif.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@
3737
#include <sstream>
3838
#include <string>
3939

40+
// avoid error reported when including exiv2.hpp on macOS (XCode 15.2)
41+
#pragma GCC diagnostic push
42+
#pragma GCC diagnostic ignored "-Wshadow"
4043
#include <exiv2/exiv2.hpp>
44+
#pragma GCC diagnostic pop
4145

4246
#include "control/control.h"
4347

0 commit comments

Comments
 (0)