Files
MINGW-packages/mingw-w64-aztecgen/aztecgen-noexcept.patch
vividsydney 38a6c8019d PKGBUILD for aztecgen library. (#2075)
* PKGBUILD for aztecgen library.
It's a simple library for encoding "Aztec Code" barcodes.
Patches fix various build issues.

* Recalculate SHA256 for patch files with Unix EOL's.

* Added -std=c++11 compiler option to satisfy GCC 5.x.
2017-01-13 14:43:02 +03:00

25 lines
833 B
Diff

diff -ur a/src/generator_exception.cpp b/src/generator_exception.cpp
--- a/src/generator_exception.cpp 2012-01-26 19:24:54.000000000 +0200
+++ b/src/generator_exception.cpp 2016-12-21 13:13:42.149159300 +0200
@@ -12,7 +12,7 @@
return _error_code;
}
-const char *generator_exception::what() const
+const char *generator_exception::what() const noexcept
{
const char *msg = "unknown error_code";
diff -ur a/src/generator_exception.h b/src/generator_exception.h
--- a/src/generator_exception.h 2012-01-26 19:23:36.000000000 +0200
+++ b/src/generator_exception.h 2016-12-21 13:13:20.941038700 +0200
@@ -14,7 +14,7 @@
generator_exception(error_code_type ecode);
error_code_type error_code() const;
- virtual const char *what() const;
+ virtual const char *what() const noexcept;
private:
error_code_type _error_code;