#warning for msvc
Pierre Stirnweiss
pstirnweiss at googlemail.com
Wed Apr 6 21:57:13 BST 2011
This is what I have used to fix all the #warning I encountered. Didn't
realise it was actually kde defined. Apparently it is defined in
kdewin_export.h.
On Wed, Apr 6, 2011 at 9:20 PM, Jaroslaw Staniek <staniek at kde.org> wrote:
> Just a note, for handy WARNING macro please look at
> kexi/kexidb/kexidb_global.h (#warning is a GNU extension).
>
> Yes, could be moved to a shared place for Calligra. Or is it already
> somewhere defined by kde-windows?
>
> The usage is not easy though:
> #ifdef __GNUC__
> #warning TODO foo
> #else
> #pragma WARNING(foo)
> #endif
>
> (note: no need for " " anywhere)
>
> PS: If someone has time, I suppose we may have a git pre/post commit
> hook fixing the warnings and use that at global level in KDE.
>
> --
> regards / pozdrawiam, Jaroslaw Staniek
> http://www.linkedin.com/in/jstaniek
> Kexi & Calligra (kexi-project.org, identi.ca/kexi, calligra-suite.org)
> KDE Software Development Platform on MS Windows (windows.kde.org)
> _______________________________________________
> calligra-devel mailing list
> calligra-devel at kde.org
> https://mail.kde.org/mailman/listinfo/calligra-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20110406/a677c47d/attachment.htm>
More information about the calligra-devel
mailing list