[lldb-dev] #pragma mark in sources
Stephen Wilson
wilsons at start.ca
Wed Feb 2 18:39:41 PST 2011
<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
More information about the lldb-dev
mailing list