[AD] Very small patch for black_rgb initialisation |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Hi, Here is a very small patch which simply initialises the `filler' element of the RGB struct in a couple of places. This was causing warnings under gcc.
--- /home/cvs/allegro/src/allegro.c Sun Jun 10 20:14:40 2001 +++ /allegro/allegro/src/allegro.c Thu Jun 14 21:21:46 2001 @@ -260,7 +260,7 @@ */ int install_allegro(int system_id, int *errno_ptr, int (*atexit_ptr)(void (*func)(void))) { - RGB black_rgb = {0, 0, 0}; + RGB black_rgb = {0, 0, 0, 0}; char tmp1[64], tmp2[64]; int i; --- /home/cvs/allegro/setup/keyconf.c Sun Jun 10 20:14:40 2001 +++ /allegro/allegro/setup/keyconf.c Thu Jun 14 21:26:06 2001 @@ -849,7 +849,7 @@ int main() { static char config_override[] = "keyboard = \n"; - RGB black_rgb = {0, 0, 0}; + RGB black_rgb = {0, 0, 0, 0}; DATAFILE *font_data; int c;
Bye for now, -- Laurence Withers, lwithers@xxxxxxxxxx http://www.lwithers.demon.co.uk/
Attachment:
signature.asc
Description: PGP signature
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |