From b6e55cce6f68ae7af33ca5e725d94a79f2a5fe9d Mon Sep 17 00:00:00 2001 From: rpaulo Date: Wed, 13 Oct 2010 10:33:01 +0000 Subject: Define YY_NO_INPUT. This makes aicasm buildable by clang with Werror turned on. --- sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l | 1 + sys/dev/aic7xxx/aicasm/aicasm_scan.l | 1 + 2 files changed, 2 insertions(+) (limited to 'sys/dev/aic7xxx') 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]; -- cgit v1.1