Avoid 'strict-aliasing' warnings.

This commit is contained in:
W. Eric Norum
2005-02-18 22:03:24 +00:00
parent 12a08561be
commit 333e4aa176
+1 -1
View File
@@ -26,7 +26,7 @@ typedef void (*REGISTRAR)(void);
#define epicsExportAddress(typ,obj) \
epicsShareExtern typ *EPICS_EXPORT_POBJ(typ,obj); \
epicsShareDef typ *EPICS_EXPORT_POBJ(typ,obj) = (typ *)&obj
epicsShareDef typ *EPICS_EXPORT_POBJ(typ,obj) = (typ *)(char *)&obj
#define epicsExportRegistrar(func) \
epicsShareFunc REGISTRAR EPICS_EXPORT_PFUNC(func) = (REGISTRAR)(void*)&func