[lldb-dev] #pragma mark in sources

kirk.beitz at nokia.com kirk.beitz at nokia.com
Wed Feb 2 18:43:20 PST 2011


that's acceptable.  i'll set that on the command line.  thanks.
++ kirk

On 2011-Feb-2, at 6:39 PM, ext Stephen Wilson wrote:

<kirk.beitz at nokia.com<mailto:kirk.beitz at nokia.com>> writes:
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.

In the makefiles we use -Wno-unknown-pragmas for the express purpose of
silencing warnings about #pragma mark.


--
steve


++ 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/6d366557/attachment.html>


More information about the lldb-dev mailing list