Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/regress/include/okheaders Turn on strict warnings and add a ...



details:   https://anonhg.NetBSD.org/src/rev/451567af2773
branches:  trunk
changeset: 552713:451567af2773
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Sep 30 21:05:04 2003 +0000

description:
Turn on strict warnings and add a main()

diffstat:

 regress/include/okheaders/Makefile      |   3 ++-
 regress/include/okheaders/symbolcheck.c |  12 ++++++++++--
 2 files changed, 12 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r 079c082c91ff -r 451567af2773 regress/include/okheaders/Makefile
--- a/regress/include/okheaders/Makefile        Tue Sep 30 21:04:54 2003 +0000
+++ b/regress/include/okheaders/Makefile        Tue Sep 30 21:05:04 2003 +0000
@@ -1,6 +1,7 @@
-#      $NetBSD: Makefile,v 1.1 2003/09/30 20:47:23 christos Exp $
+#      $NetBSD: Makefile,v 1.2 2003/09/30 21:05:04 christos Exp $
 
 NOMAN=         # defined
+WARNS=2
 
 PROG=          symbolcheck
 
diff -r 079c082c91ff -r 451567af2773 regress/include/okheaders/symbolcheck.c
--- a/regress/include/okheaders/symbolcheck.c   Tue Sep 30 21:04:54 2003 +0000
+++ b/regress/include/okheaders/symbolcheck.c   Tue Sep 30 21:05:04 2003 +0000
@@ -161,8 +161,8 @@
 #include <sys/syscallargs.h> /* Moved */
 
 /*
- * XXX: We are not doing <netinet/*.h> yet, but we need
- * the following in <net/*>
+ * XXX: We are not doing <netinet> yet, but we need
+ * the following in <net>
  */
 #include <netinet/in_systm.h>  /* Special */
 #include <netinet/in.h>                /* Special */
@@ -353,3 +353,11 @@
 struct {
 } vaddr_t;
 #endif
+
+int main(int, char *[]);
+
+int
+main(int argc, char *argv[])
+{
+       return 0;
+}



Home | Main Index | Thread Index | Old Index