[lldb-dev] #pragma mark in sources

kirk.beitz at nokia.com kirk.beitz at nokia.com
Wed Feb 2 18:07:44 PST 2011


hello lldb developers ++

i like to reduce warnings where possible so that when they do appear, they are meaningful.

in compiling lldb for windows, there are a lot of warnings about #pragma mark, which is not recognized by gcc 4.2.5 for mingw.

i know in the past, for cross-platform work, the habit was to wrap these something like:

#if defined(__APPLE__)
#pragma mark
#endif

or even further

#ifdef USES_PRAGMA_MARK
#pragma mark
#endif

which, of course, means #defining pragma mark on the (virtual) command line or in a precompiled header for the project.

i don't care how exactly we do this, but i would like to have something to silence the slew of warnings when not compiling under xcode.


++ kirk beitz : nokia : austin + san diego : kirk.beitz at nokia.com<mailto:kirk.beitz at nokia.com> ++



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20110203/01b17a9e/attachment.html>


More information about the lldb-dev mailing list