Fix MSVC warnings for error.c