Subject: Re: signedness issues when compiling with -mno-powerpc
To: None <tech-toolchain@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-toolchain
Date: 07/19/2006 18:24:41
> char *passwd;
> MD5Update(&md5ctx, passwd, strlen(passwd));
> and according to the manpage:
> MD5Update(MD5_CTX *context, const unsigned char *data, unsigned int len);
> So what is the right fix for this?
In this particular case, I would say the right fix is to make MD5Update
take a const void *.
More generally, I would say your assumption
> My assumption is that each instance of this should be fixed in the
> source.
is right.
> Or is there a compiler option I should use instead to skip past these
> warnings?
Check the docs; lots of warnings have -Wno-* forms.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B