mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
ad751bb65c
SlackBuild script cleanup. Signed-off-by: David Spencer <baildon.research@googlemail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
23 lines
976 B
Diff
23 lines
976 B
Diff
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")
|