From bc7f08b3c43ecd1e024fc566a28fb1e0b0a1258f Mon Sep 17 00:00:00 2001 From: Luis Diaz Date: Thu, 10 Mar 2022 20:57:05 +0100 Subject: [PATCH] Remove obsolete werror sample --- samples/CMakeLists.txt | 1 - samples/werror-test.cpp | 23 ----------------------- 2 files changed, 24 deletions(-) delete mode 100644 samples/werror-test.cpp diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt index 566f0ab2..331ebba3 100644 --- a/samples/CMakeLists.txt +++ b/samples/CMakeLists.txt @@ -22,7 +22,6 @@ set( SAMPLES stringto-test.cpp taglist.cpp tiff-test.cpp - werror-test.cpp write-test.cpp write2-test.cpp xmpparse.cpp diff --git a/samples/werror-test.cpp b/samples/werror-test.cpp deleted file mode 100644 index b8a1306e..00000000 --- a/samples/werror-test.cpp +++ /dev/null @@ -1,23 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -// Simple tests for the wide-string error class WError - -#include -#include - -int main() -{ - Exiv2::XmpParser::initialize(); - ::atexit(Exiv2::XmpParser::terminate); -#ifdef EXV_ENABLE_BMFF - Exiv2::enableBMFF(); -#endif - - try { - throw Exiv2::Error(Exiv2::ErrorCode::kerGeneralError, "ARG1", "ARG2", "ARG3"); - } - catch (const Exiv2::Error& e) { - std::cout << "Caught Error '" << e.what() << "'\n"; - } - - return 0; -}