Staticize file-local variables
Avoid casting warning
Prevent icc warning
Use void* as a pointer