[Glibc-bsd-commits] r5111 - in trunk/freebsd-glue: debian src
Robert Millan
rmh at alioth.debian.org
Tue Oct 29 23:06:02 UTC 2013
Author: rmh
Date: 2013-10-29 23:06:02 +0000 (Tue, 29 Oct 2013)
New Revision: 5111
Modified:
trunk/freebsd-glue/debian/changelog
trunk/freebsd-glue/debian/rules
trunk/freebsd-glue/src/get_elf_arch.c
Log:
Build get_elf_arch.c using -Wall -Werror. Fix missing return and implicit declarations.
Modified: trunk/freebsd-glue/debian/changelog
===================================================================
--- trunk/freebsd-glue/debian/changelog 2013-10-29 23:05:02 UTC (rev 5110)
+++ trunk/freebsd-glue/debian/changelog 2013-10-29 23:06:02 UTC (rev 5111)
@@ -1,6 +1,8 @@
freebsd-glue (0.1.14) UNRELEASED; urgency=low
* Redirect to native <machine/elf.h> on kFreeBSD.
+ * Build get_elf_arch.c using -Wall -Werror. Fix missing return and
+ implicit declarations.
-- Robert Millan <rmh at debian.org> Wed, 30 Oct 2013 00:04:50 +0100
Modified: trunk/freebsd-glue/debian/rules
===================================================================
--- trunk/freebsd-glue/debian/rules 2013-10-29 23:05:02 UTC (rev 5110)
+++ trunk/freebsd-glue/debian/rules 2013-10-29 23:06:02 UTC (rev 5111)
@@ -5,6 +5,8 @@
PATH := /usr/lib/freebsd:$(PATH)
PMAKE := DESTDIR="$(DESTDIR)" make
+CFLAGS = -Wall -Werror
+
clean:
dh_testdir
$(PMAKE) clean
Modified: trunk/freebsd-glue/src/get_elf_arch.c
===================================================================
--- trunk/freebsd-glue/src/get_elf_arch.c 2013-10-29 23:05:02 UTC (rev 5110)
+++ trunk/freebsd-glue/src/get_elf_arch.c 2013-10-29 23:06:02 UTC (rev 5111)
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <fcntl.h>
+#include <unistd.h>
#include <elf.h>
int
@@ -18,4 +19,6 @@
printf ("#define ELF_ARCH %u\n", ehdr.e_machine);
close (fd);
+
+ return 0;
}
More information about the Glibc-bsd-commits
mailing list