Closed rjpontefract closed 1 year ago
Actually, looking at the passed in string, I think it should be:
extern void n32016_dumpregs(const char *);
As literal strings can be placed in read-only storage. Could you try that and, if it compiles without warning, I will make the change.
That's what I thought, but I just made the prototype the same as the function in Trap.c. However, changing them both to const char * works and is a better solution.
When building on macOS with Apple Clang 14.0.3 I get the following build warning:
It looks as though
extern void n32016_dumpregs();
in Trap.h should be:
extern void n32016_dumpregs(char *);