Heavens, don't throw around code using "this" as a variable name on a C++ mailing list! XD
Seriously, though, it could simply be that Creator doesn't quite know how to parse the va_arg macro correctly. Try breaking it up into two expressions. /s/ Adam On Sat, Sep 5, 2009 at 11:47 AM, Martin Hauner<[email protected]> wrote: > Hi, > > QtCreator (1.2.1) complains about the va_arg code below with the error > (tooltip > on red underlined code): expected token ')' got 'const' > > Which is not correct, the code compiles without problem. > > > > #include <stdarg.h> > > void test(va_list ap) > { > const char *this; > > while ((this = va_arg(ap, const char *)) != NULL) > { > } > } > > > I've stripped the code down, the orignal code is from subversion: > subversion/libsvn_wc/adm_files.c (v_extend_with_adm_name) > > > -- > Martin > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-creator > _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
