summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f05e972)
raw | patch | inline | side by side (parent: f05e972)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 28 Apr 2008 14:53:57 +0000 (16:53 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 30 Apr 2008 08:43:52 +0000 (10:43 +0200) |
On FreeBSD, PERL_SYS_INIT3 expands to some expression which triggers a "value
computed is not used" warning by gcc. By telling the compiler to ignore this
value, we can work around this issue. In the long run, this should imho be
fixed in Perl though.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
computed is not used" warning by gcc. By telling the compiler to ignore this
value, we can work around this issue. In the long run, this should imho be
fixed in Perl though.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/perl.c | patch | blob | history |
diff --git a/src/perl.c b/src/perl.c
index 028375780b406275df960dcdfaec1ebe44358646..68d6ddcff9e8b1cc1ca87b1f01798abf2bd4d6f7 100644 (file)
--- a/src/perl.c
+++ b/src/perl.c
}
#endif /* COLLECT_DEBUG */
+#ifdef __FreeBSD__
+ /* On FreeBSD, PERL_SYS_INIT3 expands to some expression which
+ * triggers a "value computed is not used" warning by gcc. */
+ (void)
+#endif
PERL_SYS_INIT3 (&argc, &argv, &environ);
if (NULL == (perl = perl_alloc ())) {