FreeBSD Bugzilla – Attachment 149676 Details for
Bug 195251
[PATCH] devel/deforaos-libsystem fails to build on arm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-src_error.c
patch-src_error.c (text/x-csrc), 1006 bytes, created by
Mikael Urankar
on 2014-11-21 18:36:29 UTC
(
hide
)
Description:
patch-src_error.c
Filename:
MIME Type:
Creator:
Mikael Urankar
Created:
2014-11-21 18:36:29 UTC
Size:
1006 bytes
patch
obsolete
>--- src/error.c.orig 2014-11-21 17:41:49 UTC >+++ src/error.c >@@ -46,14 +46,22 @@ static char const * _error_do(int * code > /* error_get */ > char const * error_get(void) > { >- return _error_do(NULL, NULL, NULL); >+ va_list unused; >+ >+ bzero(&unused, sizeof(unused)); /* suppress uninitialized-value warnings */ >+ >+ return _error_do(NULL, NULL, unused); > } > > > /* error_get_code */ > char const * error_get_code(int * code) > { >- return _error_do(code, NULL, NULL); >+ va_list unused; >+ >+ bzero(&unused, sizeof(unused)); /* suppress uninitialized-value warnings */ >+ >+ return _error_do(code, NULL, unused); > } > > >@@ -98,12 +106,16 @@ int error_print(char const * program) > { > int code = 0; > >+ va_list unused; >+ >+ bzero(&unused, sizeof(unused)); /* suppress uninitialized-value warnings */ >+ > if(program != NULL) > { > fputs(program, stderr); > fputs(": ", stderr); > } >- fputs(_error_do(&code, NULL, NULL), stderr); >+ fputs(_error_do(&code, NULL, unused), stderr); > fputc('\n', stderr); > return code; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 195251
: 149676