Skip to content

Commit 755db46

Browse files
committed
Avoid exiv2 failure by ignoring -Wshadow
1 parent 59279c6 commit 755db46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/basecurve/exif-wrapper.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@
1616
along with darktable. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19+
// avoid error reported when including exiv2.hpp on macOS (XCode 15.2)
20+
#pragma GCC diagnostic push
21+
#pragma GCC diagnostic ignored "-Wshadow"
1922
#include <exiv2/exif.hpp>
2023
#include <exiv2/error.hpp>
2124
#include <exiv2/image.hpp>
25+
#pragma GCC diagnostic pop
2226

2327
#include <cstdio>
2428
#include <cassert>

0 commit comments

Comments
 (0)