diff options
author | David Spencer <baildon.research@googlemail.com> | 2015-12-13 20:59:39 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | ad751bb65cea33ebdd7f1b61dc0f6cf6eb2603b4 (patch) | |
tree | 2568671eac0c432549d59b837950794fc2e3e2cc /development/avarice/bug-777789-gcc-5.patch | |
parent | b2cd7af725d15f5bc64f244341d7ff816efd6eed (diff) |
development/avarice: Fixed build with gcc-5.2.0.
SlackBuild script cleanup.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/avarice/bug-777789-gcc-5.patch')
-rw-r--r-- | development/avarice/bug-777789-gcc-5.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/development/avarice/bug-777789-gcc-5.patch b/development/avarice/bug-777789-gcc-5.patch new file mode 100644 index 0000000000000..a4e385e3f9c24 --- /dev/null +++ b/development/avarice/bug-777789-gcc-5.patch @@ -0,0 +1,23 @@ +Description: Fix FTBFS for GCC 5 +Author: Tobias Frost <tobi@debian.org> +Bug: https://sourceforge.net/p/avarice/patches/34/ +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777789 +Last-Update: 2015-05-18 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/src/pragma.h ++++ b/src/pragma.h +@@ -28,9 +28,10 @@ + */ + #if defined(__GNUC__) + # if __GNUC__ > 4 +-# define PRAGMA_DIAG_PUSH _Pragma(GCC diagnostic push) +-# define PRAGMA_DIAG_POP _Pragma(GCC diagnostic pop) +-# define PRAGMA_DIAG_IGNORED(x) _Pragma(GCC diagnostic ignored x) ++# define PRAGMA_DIAG_PUSH _Pragma("GCC diagnostic push") ++# define PRAGMA_DIAG_POP _Pragma("GCC diagnostic pop") ++# define PRAGMA_(x) _Pragma(#x) ++# define PRAGMA_DIAG_IGNORED(x) PRAGMA_(GCC diagnostic ignored x) + # elif __GNUC__ == 4 + # if __GNUC_MINOR__ >= 6 + # define PRAGMA_DIAG_PUSH _Pragma("GCC diagnostic push") |