Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/microcode/aic7xxx make this compile with normal WARNS



details:   https://anonhg.NetBSD.org/src/rev/7419d417fff6
branches:  trunk
changeset: 935210:7419d417fff6
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Jun 27 16:19:38 2020 +0000

description:
make this compile with normal WARNS

diffstat:

 sys/dev/microcode/aic7xxx/aicasm_macro_gram.y |  4 +++-
 sys/dev/microcode/aic7xxx/aicasm_scan.l       |  9 ++++++++-
 sys/dev/microcode/aic7xxx/aicasm_symbol.c     |  5 +++--
 3 files changed, 14 insertions(+), 4 deletions(-)

diffs (69 lines):

diff -r fb16b415ac02 -r 7419d417fff6 sys/dev/microcode/aic7xxx/aicasm_macro_gram.y
--- a/sys/dev/microcode/aic7xxx/aicasm_macro_gram.y     Sat Jun 27 16:00:34 2020 +0000
+++ b/sys/dev/microcode/aic7xxx/aicasm_macro_gram.y     Sat Jun 27 16:19:38 2020 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: aicasm_macro_gram.y,v 1.2 2006/11/25 16:48:32 christos Exp $   */
+/*     $NetBSD: aicasm_macro_gram.y,v 1.3 2020/06/27 16:19:38 jdolecek Exp $   */
 
 /*
  * Sub-parser for macro invocation in the Aic7xxx SCSI
@@ -66,6 +66,8 @@
 
 static void add_macro_arg(const char *argtext, int position);
 
+int yylex(void);
+
 %}
 
 %union {
diff -r fb16b415ac02 -r 7419d417fff6 sys/dev/microcode/aic7xxx/aicasm_scan.l
--- a/sys/dev/microcode/aic7xxx/aicasm_scan.l   Sat Jun 27 16:00:34 2020 +0000
+++ b/sys/dev/microcode/aic7xxx/aicasm_scan.l   Sat Jun 27 16:19:38 2020 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: aicasm_scan.l,v 1.5 2005/12/11 12:22:18 christos Exp $ */
+/*     $NetBSD: aicasm_scan.l,v 1.6 2020/06/27 16:19:38 jdolecek Exp $ */
 /*
  * Lexical Analyzer for the Aic7xxx SCSI Host adapter sequencer assembler.
  *
@@ -60,6 +60,13 @@
 #include "aicasm_symbol.h"
 #include "aicasm_gram.h"
 
+int yyparse(void);
+void yy_delete_buffer(YY_BUFFER_STATE);
+int mmlex(void);
+int mmparse(void);
+void mm_delete_buffer(YY_BUFFER_STATE);
+void mm_switch_to_buffer(YY_BUFFER_STATE);
+
 /* This is used for macro body capture too, so err on the large size. */
 #define MAX_STR_CONST 4096
 static char string_buf[MAX_STR_CONST];
diff -r fb16b415ac02 -r 7419d417fff6 sys/dev/microcode/aic7xxx/aicasm_symbol.c
--- a/sys/dev/microcode/aic7xxx/aicasm_symbol.c Sat Jun 27 16:00:34 2020 +0000
+++ b/sys/dev/microcode/aic7xxx/aicasm_symbol.c Sat Jun 27 16:19:38 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aicasm_symbol.c,v 1.6 2009/03/18 10:22:40 cegger Exp $ */
+/*     $NetBSD: aicasm_symbol.c,v 1.7 2020/06/27 16:19:38 jdolecek Exp $       */
 
 /*
  * Aic7xxx SCSI host adapter firmware asssembler symbol table implementation
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: aicasm_symbol.c,v 1.6 2009/03/18 10:22:40 cegger Exp $");
+__RCSID("$NetBSD: aicasm_symbol.c,v 1.7 2020/06/27 16:19:38 jdolecek Exp $");
 
 #include <sys/types.h>
 
@@ -59,6 +59,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sysexits.h>
+#include <ctype.h>
 
 #include "aicasm_symbol.h"
 #include "aicasm.h"



Home | Main Index | Thread Index | Old Index