As you have shown in post #11, you are using the -pedantic option with gcc. Thus it follows strict ISO C rules.
The C standard says that the argument for "%p" shall be a pointer to void. The C...