debian/libsdl2-dev.install
author Ryan C. Gordon
Mon, 05 Jan 2015 01:41:42 -0500
changeset 9306 817656bd36ec
parent 6886 55fc95e5817b
child 10041 f6c9f42a54d6
permissions -rw-r--r--
Clang static analysis builds should use C runtime directly.

This is a little macro magic to use malloc() directly instead of SDL_malloc(),
etc, so static analysis tests that know about the C runtime can function
properly, and understand that we are dealing with heap allocations, etc.

This changed our static analysis report from 5 outstanding bugs to 30.

5x as many bugs were hidden by SDL_malloc() not being recognized as malloc()
by the static analyzer!
     1 usr/bin/sdl2-config
     2 usr/include/SDL2
     3 usr/lib/*/libSDL2*.so
     4 usr/lib/*/libSDL2.a
     5 usr/lib/*/libSDL2main.a
     6 usr/lib/*/libSDL2_test.a
     7 usr/lib/*/pkgconfig/sdl2.pc
     8 usr/share/aclocal/sdl2.m4