[Pkg-electronics-commits] [covered] 01/07: clang-ftbfs.diff: mark inline function with '__attribute__ ((gnu_inline))' to fix FTBFS with GCC-5
أحمد المحمودي (Ahmed El-Mahmoudy)
aelmahmoudy at sabily.org
Wed Jun 17 11:23:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
aelmahmoudy-guest pushed a commit to branch master
in repository covered.
commit f80aa94cdc095be512c2134e83d87245777aea0a
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at users.sourceforge.net>
Date: Wed Jun 17 10:53:30 2015 +0200
clang-ftbfs.diff: mark inline function with '__attribute__ ((gnu_inline))' to fix FTBFS with GCC-5
Also update forwarded patch URL.
Closes: #777821
---
debian/patches/clang-ftbfs.diff | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/patches/clang-ftbfs.diff b/debian/patches/clang-ftbfs.diff
index be668fe..ec770aa 100644
--- a/debian/patches/clang-ftbfs.diff
+++ b/debian/patches/clang-ftbfs.diff
@@ -1,7 +1,9 @@
Description: Fix FTBFS with clang
+ Also fix FTBFS with GCC-5 by marking inline function with
+ '__attribute__ ((gnu_inline))'
Bug-Debian: http://bugs.debian.org/757263
Bug: https://sourceforge.net/p/covered/patches/2/
-Forwarded: https://sourceforge.net/p/covered/patches/2/
+Forwarded: https://sourceforge.net/p/covered/patches/_discuss/thread/1bd3b877/21a7/attachment/clang-ftbfs.diff
--- a/src/lxt2_read.h
+++ b/src/lxt2_read.h
@@ -17,7 +19,7 @@ Forwarded: https://sourceforge.net/p/covered/patches/2/
-#endif
+#else // __clang__
+# ifdef __GNUC__
-+# define _LXT2_RD_INLINE inline
++# define _LXT2_RD_INLINE __attribute__ ((gnu_inline)) inline
+# else
+# define _LXT2_RD_INLINE
+# endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/covered.git
More information about the Pkg-electronics-commits
mailing list