I’ve been using SDL 2 in a project of mine. I’ve compiled my project using
clang (in C++ mode) using the -Weverything flag. However, since I’ve
installed SDL 2 to my home folder, clang does not consider the headers to
be system headers and spits out hundreds of warnings for inconsequential
things that have nothing to do with my own code. I suggest adding something
like:
#pragma clang system_header
to each of the headers, or something similar to begin_code.h. I think it
would be better than expecting users of SDL to add the -isystem-header
compiler option themselves. What do you guys think?
Can you post a bug to bugzilla for tracking, and include the warning
output? Some of them might be worth fixing… http://bugzilla.libsdl.org
Thanks!On Fri, Nov 16, 2012 at 7:57 PM, Robin Kaup <k.robin64 at gmail.com> wrote:
Hi,
I’ve been using SDL 2 in a project of mine. I’ve compiled my project using
clang (in C++ mode) using the -Weverything flag. However, since I’ve
installed SDL 2 to my home folder, clang does not consider the headers to
be system headers and spits out hundreds of warnings for inconsequential
things that have nothing to do with my own code. I suggest adding something
like:
#pragma clang system_header
to each of the headers, or something similar to begin_code.h. I think it
would be better than expecting users of SDL to add the -isystem-header
compiler option themselves. What do you guys think?
Can you post a bug to bugzilla for tracking, and include the warning
output? Some of them might be worth fixing… http://bugzilla.libsdl.org
Thanks!
On Fri, Nov 16, 2012 at 7:57 PM, Robin Kaup <@Robin_Kaup> wrote:
Hi,
I’ve been using SDL 2 in a project of mine. I’ve compiled my project
using clang (in C++ mode) using the -Weverything flag. However, since I’ve
installed SDL 2 to my home folder, clang does not consider the headers to
be system headers and spits out hundreds of warnings for inconsequential
things that have nothing to do with my own code. I suggest adding something
like:
#pragma clang system_header
to each of the headers, or something similar to begin_code.h. I think it
would be better than expecting users of SDL to add the -isystem-header
compiler option themselves. What do you guys think?