summaryrefslogtreecommitdiffstats
path: root/sys/dev/aic7xxx
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2010-10-13 10:33:01 +0000
committerrpaulo <rpaulo@FreeBSD.org>2010-10-13 10:33:01 +0000
commitb6e55cce6f68ae7af33ca5e725d94a79f2a5fe9d (patch)
tree75a5abdbe7322b52031a8d9990350f007996be0a /sys/dev/aic7xxx
parent35bffd28c511f768df7821ed4dc1ef77a8619fe9 (diff)
downloadFreeBSD-src-b6e55cce6f68ae7af33ca5e725d94a79f2a5fe9d.zip
FreeBSD-src-b6e55cce6f68ae7af33ca5e725d94a79f2a5fe9d.tar.gz
Define YY_NO_INPUT. This makes aicasm buildable by clang with Werror
turned on.
Diffstat (limited to 'sys/dev/aic7xxx')
-rw-r--r--sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l1
-rw-r--r--sys/dev/aic7xxx/aicasm/aicasm_scan.l1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l b/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l
index ad06507..a4bd95e 100644
--- a/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l
+++ b/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l
@@ -61,6 +61,7 @@
#include "aicasm_symbol.h"
#include "aicasm_macro_gram.h"
+#define YY_NO_INPUT
#define MAX_STR_CONST 4096
static char string_buf[MAX_STR_CONST];
static char *string_buf_ptr;
diff --git a/sys/dev/aic7xxx/aicasm/aicasm_scan.l b/sys/dev/aic7xxx/aicasm/aicasm_scan.l
index 2821862..d7b2898 100644
--- a/sys/dev/aic7xxx/aicasm/aicasm_scan.l
+++ b/sys/dev/aic7xxx/aicasm/aicasm_scan.l
@@ -61,6 +61,7 @@
#include "aicasm_symbol.h"
#include "aicasm_gram.h"
+#define YY_NO_INPUT
/* 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];
OpenPOWER on IntegriCloud