When I try compiling all from scratch with Xcode 4.3, I get this
error in compiling fdisk.
================= Making all in fdisk =================
[CC32] misc.c
misc.c:170:12: error: promoted type 'int' of K&R function
parameter is not
compatible with the parameter type 'u_int16_t' (aka 'unsigned
short')
declared in a previous prototype [-Werror]
u_int16_t l;
^
./misc.h:70:37: note: previous declaration is here
void putshort __P((void *, u_int16_t));
^
/usr/include/sys/cdefs.h:86:21: note: expanded from macro '__P'
#define __P(protos) protos /* full-blown ANSI C */
Thank you!
Reported by Louis D, Feb 21, 2012