Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

gcc 4.3 build issues

#11

Imprudence fails to build on a system with gcc 4.3. Most of the issues are to do with the compiler detecting the following as unsafe:

printf (someNonLiteralString);

The fix is to replace it with something along the lines of:

printf ("%s", someNonLiteralString);

Note that this doesn't affect this, as the compiler knows the string literal is safe:

printf ("A literal string");

The attached patch fixes the affected lines, and also fixes the "typedef struct Vertex" issue that is already fixed in the OpenAL branch. I've tested that it applies cleanly to a fresh download of the 1.0.0RC1 source.

Reported by Stephen Zenith · November 30th, 2008 @ 04:53 PM

State: done
Milestone: 1.0.0 RC2
Assigned to: Jacek Antonelli Jacek Antonelli

Activity

  1. Stephen Zenith
  2. Jacek Antonelli
    Jacek Antonelli
    • Tag set to bug, compile
    • Milestone set to 1.0.0 RC2
    • State changed from new to done
    • Assigned user set to Jacek Antonelli

    Patch applied to the 'next' branch. This should ship with RC2. Thanks!

    November 30th, 2008 @ 09:12 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.