Re: [AD] Allegro on Clang (OS X)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I agree. I don't know why, maybe the generated makefiles are too
complicated for scan-build to interpret? Although I'm sure I've used
it in the past. The generated xcode project is OK though.

Pete


On Tue, Feb 23, 2010 at 8:26 PM, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> On 23 Feb 2010, at 15:08 , Peter Hull wrote:
>> Oh, did you do a make clean/xcodebuild clean before running the
>> analyser? It only analyses the files that the build tool actually
>> compiles.
>
> Yup. Twice (three times by now, I guess). I ran:
>
> eglebbk@xxxxxxxxxx>rm -rf *
> eglebbk@xxxxxxxxxx>CC=clang ccmake ..
> eglebbk@xxxxxxxxxx>scan-build make
>
> which finishes with
>
> [100%] Built target docs
> scan-build: Removing directory '/var/folders/7A/7AuAX+zrEfWdK7h5SUaD9k+++TI/-Tmp-/scan-build-2010-02-23-1' because it contains no reports.
> eglebbk@xxxxxxxxxx>
>
> Clang does complain about "extraneous characters in wide character constant"s in ex_utf8.c (I guess it doesn't like the unicode characters in there) and it warns about some compiler options that it ignored when linking the examples. There are four warnings of "cast from pointer to integer of different size", due to Apple defining CGDisplayID to be a 32 bit integer on both 32 and 64 bit systems despite the fact that functions that supposedly return one actually return a pointer, but that's it.
> During the Cmake configuration step I set CMAKE_BUILD_TYPE to "Debug" and CMAKE_OSX_ARCHITECTURE to "i386;x86_64"
>
> Evert
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/