[5846] in Athena Bugs
rt 7.0F: hc
daemon@ATHENA.MIT.EDU (John T Kohl)
Fri Aug 24 18:45:14 1990
Date: Fri, 24 Aug 90 18:44:56 -0400
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
System name: steve-dallas
Type and version: RTPC-ROMPC 7.0F
Display type: apa16
What were you trying to do?
Compile an X program with hc.
What's wrong:
HC apparently calls all things typedef'ed to the same type the
same thing in error messages.
e.g.:
cc -g -c Clock.c
E "Clock.c",L242/C8: Type "unsigned int*" is not assignment compatible with type "XrmQuarkList".
E "Clock.c",L242/C16: Type "unsigned int*" is not assignment compatible with type "XrmQuarkList".
E "Clock.c",L251/C8: Type "unsigned int*" is not assignment compatible with type "XrmQuarkList".
E "Clock.c",L251/C16: Type "unsigned int*" is not assignment compatible with type "XrmQuarkList".
Now, the offending lines pass an unsigned int * to a function declared
as requiring an int *:
from <X11/Xlib.h>:
extern int XReadBitmapFile(
#if NeedFunctionPrototypes
Display* /* display */,
Drawable /* d */,
const char* /* filename */,
unsigned int* /* width_return */,
unsigned int* /* height_return */,
Pixmap* /* bitmap_return */,
int* /* x_hot_return */,
int* /* y_hot_return */
#endif
);
In <X11/Xresource.h>:
typedef int XrmQuark, *XrmQuarkList;
What should have happened:
hc should have said:
E "Clock.c",L242/C8: Type "unsigned int*" is not assignment compatible with type "int*".
Please describe any relevant documentation references:
hc(1)