Xref: utzoo comp.windows.x:16198 comp.lang.c:24746 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!tolsoft!leach From: leach@tolerant.com (Geoffrey Leach) Newsgroups: comp.windows.x,comp.lang.c Subject: Problem with Geometry Handler definition syntax, X11R3 Message-ID: <1989Dec27.221725.9951@tolerant.com> Date: 27 Dec 89 22:17:25 GMT Organization: Tolerant Software Lines: 33 /* ** These three typedefs are taken from the X11R3 Xt Intrinsics ** header files. */ typedef enum { XtGeometryYes } XtGeometryResult; typedef XtGeometryResult (*XtGeometryHandler)(); typedef struct _CompositeClassPart { XtGeometryHandler geometry_manager; } CompositeClassPart; /* ** Here's the problem code */ extern XtGeometryHandler foo(); CompositeClassPart ccp = { foo }; /* ** And the result from the SVR3.2.2 cc is the warning: ** ** "p.c", line 22: warning: illegal pointer combination, op = ** ** The key to the complaint appears to be the fact that the ** typedef is a pointer to a procedure returning an enum. ** Is this a peculiarity of ATT's cc? Anyone know of a workaround? */