[Flex-help] warning: ‘yyunput’ defined but not used
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Yang Z. <yan...@gm...> - 2008-06-02 23:23:35
|
Hi, I'm trying to generate a lexer and compile it with gcc -Wall, but I get the below warning. Is there any way to avoid this warning without disabling the warning or manually touching up the generated sources? Thanks in advance! $ make flex -o ex1.yy.c ex1.l gcc -Wall -o ex1 ex1.yy.c -ll ex1.yy.c:1048: warning: ‘yyunput’ defined but not used # libl contains a `main` function. rm ex1.yy.c $ cat ex1.l %{ #include <stdio.h> %} %% stop printf("Stop command received\n"); start printf("Start command received\n"); %% -- Yang Zhang http://www.mit.edu/~y_z/ |