[liblocale-hebrew-perl] 04/05: Fix "implicit declaration of function exit" compiler warning
Florian Schlichting
fsfs at moszumanska.debian.org
Sun Apr 13 20:26:44 UTC 2014
This is an automated email from the git hooks/post-receive script.
fsfs pushed a commit to branch master
in repository liblocale-hebrew-perl.
commit 159c597da6cd6bd118e2c2ca434afe33d53d8c37
Author: Florian Schlichting <fsfs at debian.org>
Date: Sun Apr 13 22:24:00 2014 +0200
Fix "implicit declaration of function exit" compiler warning
---
debian/patches/implicit_declaration_exit.patch | 23 +++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 24 insertions(+)
diff --git a/debian/patches/implicit_declaration_exit.patch b/debian/patches/implicit_declaration_exit.patch
new file mode 100644
index 0000000..7d7852b
--- /dev/null
+++ b/debian/patches/implicit_declaration_exit.patch
@@ -0,0 +1,23 @@
+Description: fix "implicit declaration of function exit" warning
+ ASSERT(x) uses exit(), so stdlib.h needs to be included before it
+Author: Florian Schlichting <fsfs at debian.org>
+Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=94694
+
+--- a/bidi.c
++++ b/bidi.c
+@@ -7,6 +7,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #define ASSERT(x) if (!(x)) { fprintf(stderr, "assert failed: %s\n", #x); exit(-1);} else ;
+ #define TCHAR unsigned char
+@@ -1219,7 +1220,6 @@
+
+ // ===== FUNCTIONS FOR COMMAND LINE VERSION ==============================
+
+-#include <stdlib.h>
+ #include <string.h>
+
+ // An alternate CharFromTypes array may be needed to use the command
diff --git a/debian/patches/series b/debian/patches/series
index 024f72e..8290651 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
format_not_a_string_literal.patch
+implicit_declaration_exit.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/liblocale-hebrew-perl.git
More information about the Pkg-perl-cvs-commits
mailing list