From 8faeee79a4329b27f1f17085116349a20ed25b02 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 5 Apr 2016 15:57:30 -0700 Subject: Get rid of extra %noyyalloc etc. stuff. Change-Id: I2af498202981a43d0f50cf014fba9116875d2819 Reviewed-on: https://code.wireshark.org/review/14824 Reviewed-by: Guy Harris --- epan/uat_load.l | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'epan/uat_load.l') diff --git a/epan/uat_load.l b/epan/uat_load.l index a27fb2ff2d..ace66b0e60 100644 --- a/epan/uat_load.l +++ b/epan/uat_load.l @@ -33,8 +33,9 @@ * "unused argument" warnings from the yyscanner argument (which * we don't use, as we have a global memory allocator). * - * We provide our own versions of the routines generated by Flex, which - * have a "yes, this is unused, don't complain about it" flag for yyscanner. + * We provide, as macros, our own versions of the routines generated by Flex, + * which just call malloc()/realloc()/free() (as the Flex versions do), + * discarding the extra argument. */ %option noyyalloc %option noyyrealloc @@ -46,19 +47,6 @@ */ %option prefix="uat_load_" -/* - * We have to override the memory allocators so that we don't get - * "unused argument" warnings from the yyscanner argument (which - * we don't use, as we have a global memory allocator). - * - * We provide, as macros, our own versions of the routines generated by Flex, - * which just call malloc()/realloc()/free() (as the Flex versions do), - * discarding the extra argument. - */ -%option noyyalloc -%option noyyrealloc -%option noyyfree - %{ /* * uat_load.l -- cgit v1.2.1