mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix build
CC target/libc/vsprintf.o cc1: warnings being treated as errors ../libc/string.c: In function 'strncasecmp': ../libc/string.c:518: warning: '__res' may be used uninitialized in this function Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@731 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -515,7 +515,7 @@ strcasecmp( const char *cs, const char *ct )
|
|||||||
int
|
int
|
||||||
strncasecmp( const char *cs, const char *ct, size_t count )
|
strncasecmp( const char *cs, const char *ct, size_t count )
|
||||||
{
|
{
|
||||||
register signed char __res;
|
register signed char __res = 0;
|
||||||
|
|
||||||
while (count--) {
|
while (count--) {
|
||||||
char ch1 = toupper(*cs), ch2 = toupper(*ct);
|
char ch1 = toupper(*cs), ch2 = toupper(*ct);
|
||||||
|
|||||||
Reference in New Issue
Block a user