Changeset 514


Ignore:
Timestamp:
Nov 18, 2005, 11:46:53 AM (15 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed remaining warnings with gcc 3.x and 4.x
Location:
libcaca/trunk/examples
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/examples/aafire.c

    r377 r514  
    9393  int i;
    9494#ifdef LIBCACA
    95   int r[256], g[256], b[256], a[256];
     95  unsigned int r[256], g[256], b[256], a[256];
    9696#endif
    9797
     
    178178  i = 0;
    179179#define END (bitmap + XSIZ * YSIZ)
    180   for (p = bitmap; p <= (unsigned char *) (END); p += 1)
     180  for (p = (unsigned char*)bitmap;
     181       (char*)p <= (( char *) (END));
     182       p += 1)
    181183    {
    182184      *p = table[(*(p + XSIZ - 1) + *(p + XSIZ + 1) + *(p + XSIZ)) +
     
    206208  i1 = 1;
    207209  i2 = 4 * XSIZ + 1;
    208   for (p = (char *) bitmap + XSIZ * (YSIZ + 0);
     210  for (p = (unsigned char *) bitmap + XSIZ * (YSIZ + 0);
    209211       p < ((unsigned char *) bitmap + XSIZ * (YSIZ + 1));
    210212       p++, i1 += 4, i2 -= 4)
  • libcaca/trunk/examples/cacaball.c

    r377 r514  
    5353int main(int argc, char **argv)
    5454{
    55     int r[256], g[256], b[256], a[256];
     55    unsigned int r[256], g[256], b[256], a[256];
    5656    float d[METABALLS], di[METABALLS], dj[METABALLS], dk[METABALLS];
    5757    unsigned int x[METABALLS], y[METABALLS];
  • libcaca/trunk/examples/cacamoir.c

    r377 r514  
    4545int main (int argc, char **argv)
    4646{
    47     int red[256], green[256], blue[256], alpha[256];
     47    unsigned int red[256], green[256], blue[256], alpha[256];
    4848    struct caca_bitmap *bitmap;
    4949    int i, x, y, frame = 0, pause = 0;
     
    119119static void put_disc(int x, int y)
    120120{
    121     char *src = disc + (DISCSIZ / 2 - x) + (DISCSIZ / 2 - y) * DISCSIZ;
     121    char *src = ((char*)disc) + (DISCSIZ / 2 - x) + (DISCSIZ / 2 - y) * DISCSIZ;
    122122    int i, j;
    123123
  • libcaca/trunk/examples/cacaplas.c

    r462 r514  
    4848int main (int argc, char **argv)
    4949{
    50     int red[256], green[256], blue[256], alpha[256];
     50    unsigned int red[256], green[256], blue[256], alpha[256];
    5151    double r[3], R[6];
    5252    struct caca_bitmap *bitmap;
Note: See TracChangeset for help on using the changeset viewer.