On 26/02/2015 20:57, Jim Whitby wrote:
System Mageia 4 x86_64

Found 3 warnings, 1 in configure and 2 in compile:


Hi,

compile-time warnings at least should be fixed now in SVN.

Thank you,
Arianna


configure warning:

config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting

compile warnings:

Redis.cpp:1028:6: warning: variable 'zErrMsg' is used uninitialized whenever
       '||' condition is true [-Wsometimes-uninitialized]
                 if(!createOpenDB(&db, key) ||
                    ^~~~~~~~~~~~~~~~~~~~~~~
Redis.cpp:1034:18: note: uninitialized use occurs here
                   sqlite3_free(zErrMsg);
                                ^~~~~~~
Redis.cpp:1028:6: note: remove the '||' if its condition is always false
                 if(!createOpenDB(&db, key) ||
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
Redis.cpp:1017:21: note: initialize the variable 'zErrMsg' to silence this
       warning
               char *zErrMsg, *pipe = strchr(host_buf,'|');
                            ^
                             = NULL
Redis.cpp:1028:6: warning: variable 'rc' is used uninitialized whenever '||'
       condition is true [-Wsometimes-uninitialized]
                 if(!createOpenDB(&db, key) ||
                    ^~~~~~~~~~~~~~~~~~~~~~~
Redis.cpp:1030:8: note: uninitialized use occurs here
                   if(rc != SQLITE_CONSTRAINT /* Key already existing */)
                      ^~
Redis.cpp:1028:6: note: remove the '||' if its condition is always false
                 if(!createOpenDB(&db, key) ||
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
Redis.cpp:1021:9: note: initialize the variable 'rc' to silence this warning
                 int rc;
                       ^
                        = 0



_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop



--
/*
 * Arianna Avanzini
 * [email protected]
 * http://ava.webhop.me
 */
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to