fixes bug #119105 compiler warnings
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 26 Aug 2003 20:20:11 +0000 (20:20 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 26 Aug 2003 20:20:11 +0000 (20:20 +0000)
Original commit message from CVS:
fixes bug #119105
compiler warnings

gst/parse/parse.l
gst/schedulers/cothreads_compat.h

index 327bde1673b78822c2caea3577d00441d1f12e16..022ba6ef62f8e42ba2c6d95eabd74f09d29ed80a 100644 (file)
@@ -26,7 +26,6 @@
 #define CHAR(x) PRINT ("char: %c\n", *yytext); return *yytext;
 
 #define YY_DECL int _gst_parse_yylex (YYSTYPE *lvalp)
-#define YY_NO_UNPUT
 %}
 
 _integer [-+]?[[:digit:]]+
@@ -53,6 +52,7 @@ _flink ({_identifier}\.)?{_identifier}!{_caps}!({_identifier}\.)?{_identifier}
 
 %x value
 %option noyywrap
+%option nounput
 %%
 
 <value>{
index 94f364e7e3af6ae45f29a0e17f0de6df24be01eb..15d5727e3c0484c1443a714aad554e568f9ddffa 100644 (file)
@@ -114,11 +114,11 @@ static void do_cothread_switch(cothread *to)
 
 #define do_cothread_create(new_cothread, context, func, argc, argv)         \
   G_STMT_START{                                                             \
-    new_cothread = cothread_create ((func), 0, (void**) (argv), (context)); \
+    new_cothread = cothread_create ((func), 0, (char **) (argv), (context)); \
   }G_STMT_END
   
 #define do_cothread_setfunc(cothread, context, func, argc, argv)            \
-  cothread_setfunc ((cothread), (func), (argc), (void **) (argv), (context))
+  cothread_setfunc ((cothread), (func), (argc), (char **) (argv), (context))
 
 #define do_cothread_destroy(cothread)          cothread_destroy(cothread)