diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-02-10 19:13:07 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-02-10 19:13:07 +0000 |
commit | ebacca89a79f3d08d1cc63fdc1a77bdd37c20477 (patch) | |
tree | 517e4b2d4d4d29eda2f4cf3352a67d328bc8958b /epan/uat_load.l | |
parent | 19ffe7eb4ca47c378ff1df0df3e5025df6d14f35 (diff) |
Add %option noinput to a bunch of Flex files, as we aren't using the
input() routine and thus don't need to have it generated - and as it
produces warnings of a routine defined but not used, we don't want to
have it generated.
Squelch a casting-const-away warning.
svn path=/trunk/; revision=47613
Diffstat (limited to 'epan/uat_load.l')
-rw-r--r-- | epan/uat_load.l | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/uat_load.l b/epan/uat_load.l index f42ed376ad..c306d4d14a 100644 --- a/epan/uat_load.l +++ b/epan/uat_load.l @@ -1,4 +1,9 @@ /* + * We don't use input, so don't generate code for it. + */ +%option noinput + +/* * We don't use unput, so don't generate code for it. */ %option nounput @@ -165,7 +170,7 @@ comment #[^\n]*\n } <START_OF_LINE,NEXT_FIELD>{newline} { - ptrx = ""; + ptrx = g_strdup(""); len = 0; BEGIN END_OF_RECORD; |