From: Dana Jansens Date: Wed, 7 Aug 2002 01:45:13 +0000 (+0000) Subject: include the right header and cast to avoid warnings X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=0ca8cd6f68ac114124923d172ec7904fb3c14e47;p=chaz%2Fopenbox include the right header and cast to avoid warnings --- diff --git a/util/epist/epist.l b/util/epist/epist.l index 6e3914cb..5a96e39d 100644 --- a/util/epist/epist.l +++ b/util/epist/epist.l @@ -1,5 +1,6 @@ %{ #include +#include #include "yacc_parser.hh" %} @@ -47,16 +48,16 @@ showWorkspaceMenu | stringChain | keyChain | numberChain | -cancel yylval = strdup(yytext); return ACTION; +cancel yylval = (int) strdup(yytext); return ACTION; Mod1 | Mod2 | Mod3 | Mod4 | Control | -Shift yylval = strdup(yytext); return BINDING; -[0-9]+ yylval = strdup(yytext); return NUMBER; -\".+\" yylval = strdup(yytext); return QUOTES; -[a-zA-Z_0-9]+ yylval = strdup(yytext); return WORD; +Shift yylval = (int) strdup(yytext); return BINDING; +[0-9]+ yylval = (int) strdup(yytext); return NUMBER; +\".+\" yylval = (int) strdup(yytext); return QUOTES; +[a-zA-Z_0-9]+ yylval = (int) strdup(yytext); return WORD; #.+\n /* ignore */ \n /* ignore */ [ \t]+ /* */