From: Karsten Blees Date: Wed, 18 Dec 2013 14:05:04 GMT Subject: Re: What's cooking in git.git (Dec 2013, #02; Fri, 6) Message-ID: <52B1AB90.1080800@gmail.com> In-Reply-To: <52B19EBC.50609@gmail.com> Am 18.12.2013 14:10, schrieb Karsten Blees: > + printf("sizeof(pointer+int) (%u) is not a " > + "multiple of sizeof(pointer) (%u)!\n", > + sizeof(struct pointer_int), > + sizeof(void *)); Should be: - sizeof(struct pointer_int), - sizeof(void *)); + (unsigned) sizeof(struct pointer_int), + (unsigned) sizeof(void *)); (sizeof() is 'unsigned int' on 32-bit and 'long unsigned int' on 64-bit; without the cast, "%u" produces warnings on 64-bit and "%lu" on 32-bit...)