From the comments above, the answer is NO. And ideally I need to fix the above code with proper casting (if I am allowed to do so).
1
solved C/C++: Is it possible to configure the Eclipse project settings to accept void pointer without casting for all Linux distros