Resolve warnings on Windows
Appease the compiler by resolving some of the reported warnings, including: - Control paths that don't return. - Potentially uninitialized variables. - Unused local variables. - Unreachable code. - Type safety. - Synchronize declarations with definitions for functions.
This commit is contained in:
@@ -498,7 +498,7 @@ xyzprintf (struct snprintf_state *state, const char *char_format, va_list ap)
|
||||
break;
|
||||
}
|
||||
case 'p' : {
|
||||
unsigned long arg = (unsigned long)va_arg(ap, void*);
|
||||
u_longest arg = (u_longest)va_arg(ap, void*);
|
||||
|
||||
len += append_number (state, arg, 0x10, "0123456789ABCDEF",
|
||||
width, prec, flags, 0);
|
||||
|
Reference in New Issue
Block a user