[Qt-creator] Macro expansion claims error, but code compiles fine

Orgad and Raizel Shaneh orgads at gmail.com
Mon May 28 07:46:01 CEST 2012


On Mon, May 28, 2012 at 8:37 AM, Geronimo Ma. Hernandez <geronimo013 at gmx.com
> wrote:

> Hello,
>
> I just wanted to inform you, that all occurrences of this macro:
>
> #define isyslog(a ...)      void((SysLogLevel > 1) ?
> syslog_with_tid(LOG_ERR,
> a) : void())
>
> where marked es faulty. Flyover help says: expected token ';' got ')'
> May be your parser needs a little finetuning, cause gcc does not vomit any
> warning.
>
> kind regards
>
> Gero
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>

Are you using 2.5 or master? Because this
change<https://codereview.qt-project.org/20324> (in
master) should handle this.

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120528/9459de7d/attachment.html>


More information about the Qt-creator mailing list