Pointer to interrupt
Posted on 1997-05-23
I have some code that works, but it annoys me that I get a compilation warning.
This is a DOS program written with MSVC 1.52, large memory model.
I declare a pointer to an interrupt as so:-
void (_cdecl _interrupt _far *_based(_segname("_CODE"))oldClockInt)(void) = NULL;
and then use it in the code as so:-
oldClockInt = _dos_getvect(8U);
The warning I get is:-
warning C4113: function parameter lists differed
It annoys the hell out of me to get warnings. Other than turning the warning off, how can I define this pointer correctly?