* multipath-tools: [cppcheck] static code analysis
@ 2016-07-21 12:40 Xose Vazquez Perez
0 siblings, 0 replies; only message in thread
From: Xose Vazquez Perez @ 2016-07-21 12:40 UTC (permalink / raw)
To: device-mapper development, Christophe Varoqui, Hannes Reinecke,
Benjamin Marzinski, ShivaKrishna Merla
ShivaKrishna, could you please check the first two errors(Division by zero).
That code was added in a28e61e5
[libmultipath/configure.c:179]: (error) Division by zero.
[libmultipath/configure.c:197]: (error) Division by zero.
[libmultipath/print.c:800]: (error) Expression 'while((int)(c-s)<(data.width)&&(c<(line+len-1)))*c++' depends on order of evaluation of side effects
[libmultipath/print.c:835]: (error) Expression 'while((int)(c-s)<(data.width)&&(c<(line+len-1)))*c++' depends on order of evaluation of side effects
[libmultipath/print.c:867]: (error) Expression 'while((int)(c-s)<(data.width)&&(c<(line+len-1)))*c++' depends on order of evaluation of side effects
[libmultipath/print.c:902]: (error) Expression 'while((int)(c-s)<(data.width)&&(c<(line+len-1)))*c++' depends on order of evaluation of side effects
[libmultipath/print.c:936]: (error) Expression 'while((int)(c-s)<(data.width)&&(c<(line+len-1)))*c++' depends on order of evaluation of side effects
[libmpathcmd/mpath_cmd.h:24]: (error) Invalid number of character '{' when these macros are defined: '__cpluscplus'.
[kpartx/kpartx.c:70]: (portability) Assigning an integer to a pointer is not portable.
[libmultipath/log.c:58]: (portability) 'la.start' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
[libmultipath/log.c:119]: (portability) 'la.tail' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
[libmultipath/devmapper.c:1050]: (portability) '(void*)names' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
[libmultipath/devmapper.c:1200]: (portability) '(void*)names' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
[libmultipath/devmapper.c:891]: (portability) '(void*)names' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
[libmultipath/devmapper.c:162]: (portability) '(void*)target' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined.
[libmultipath/alias.c:54] -> [libmultipath/alias.c:55]: (performance) Buffer 'name' is being written before its old content has been used.
[0] http://cppcheck.sf.net/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-21 12:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-21 12:40 multipath-tools: [cppcheck] static code analysis Xose Vazquez Perez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).