diff --git a/core/src/Barcode.cpp b/core/src/Barcode.cpp index 7163c1f480..41b2137d36 100644 --- a/core/src/Barcode.cpp +++ b/core/src/Barcode.cpp @@ -12,7 +12,6 @@ #ifdef ZXING_EXPERIMENTAL_API #include "BitMatrix.h" -#endif #ifdef ZXING_USE_ZINT #include @@ -22,6 +21,9 @@ void zint_symbol_deleter::operator()(zint_symbol* p) const noexcept } #else struct zint_symbol {}; +void zint_symbol_deleter::operator()(zint_symbol*) const noexcept {} +#endif + #endif #include diff --git a/core/src/Barcode.h b/core/src/Barcode.h index f7ac4608d3..051205ae41 100644 --- a/core/src/Barcode.h +++ b/core/src/Barcode.h @@ -18,11 +18,11 @@ #ifdef ZXING_EXPERIMENTAL_API #include -extern "C" struct zint_symbol; namespace ZXing { class BitMatrix; } +extern "C" struct zint_symbol; struct zint_symbol_deleter { void operator()(zint_symbol* p) const noexcept;