Header file problem in libctwm.c

From: Rhialto (rhialto@azenomei.knuffel.net)
Date: Sun Mar 09 2003 - 12:47:32 CET


Hi,

when compiling the alpha4 on my Digital Alpha, I get these warnings at
the end:

gcc -O2 -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15
-DNARROWPROTO -DUSEM4 -DGNOME -DXPM -DJPEG -I/usr/pkg/include
-I/usr/X11R6/include -c libctwm.c
libctwm.c: In function `CtwmListWorkspaces':
libctwm.c:81: warning: type mismatch in implicit declaration for
built-in function `strlen'
libctwm.c:85: warning: cast to pointer from integer of different size
libctwm.c: In function `CtwmCurrentOccupation':
libctwm.c:161: warning: cast to pointer from integer of different size
libctwm.c: In function `CtwmSetOccupation':
libctwm.c:192: warning: cast to pointer from integer of different size
libctwm.c:196: warning: type mismatch in implicit declaration for
built-in function `strcpy'

These look like a problem with including the right #include files.

The "cast to pointer from integer of different size" warnings are about
malloc(), and needs <stdlib.h> and the one about strcpy() would mean that
<string.h> is needed.

Is libtwm even used, by the way? It is built at the end and not
installed that I can see...

Cheers,
-Olaf.

-- 
___ Olaf 'Rhialto' Seibert      -- The evil eye is caused by the black
\X/ rhialto/at/xs4all.nl        -- tongue - Tom Poes, "Het boze oog", 4456.


This archive was generated by hypermail 2.1.4 : Mon Mar 10 2003 - 06:45:03 CET