The branch master has been updated
       via  ec91f92ddf74bea473148674aff25410311edaab (commit)
      from  f8f686ec1cda6a077ec9d5c2ab540cf202059279 (commit)


- Log -----------------------------------------------------------------
commit ec91f92ddf74bea473148674aff25410311edaab
Author: Matt Caswell <[email protected]>
Date:   Fri May 27 14:59:47 2016 +0100

    Silence some "may be uninitialized when used" warning
    
    Clang was complaining about some variables possibly being uninitialized
    when used. The warnings are bogus, but clang can't figure that out. This
    silences the warnings.
    
    Reviewed-by: Richard Levitte <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 test/bioprinttest.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/bioprinttest.c b/test/bioprinttest.c
index d376cfb..c69a79c 100644
--- a/test/bioprinttest.c
+++ b/test/bioprinttest.c
@@ -92,7 +92,7 @@ static void dofptest(int test, double val, char *width, int 
prec, int *fail)
     int i;
 
     for (i = 0; i < 5; i++) {
-        char *fspec;
+        char *fspec = NULL;
         switch (i) {
         case 0:
             fspec = "e";
@@ -143,8 +143,8 @@ int main(int argc, char **argv)
     int test = 0;
     int i;
     int fail = 0;
-    int prec;
-    char *width;
+    int prec = -1;
+    char *width = "";
     const double frac = 2.0/3.0;
     char buf[80];
 
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to