cppcheck-1.85 \ --enable=warning,style,performance,portability,information \ --library=posix \ --platform=unix64 \ ... \ -U__KERNEL__ \ -U__LP64__ \ -U__VERSION__ \ -U_NETWARE \ -DBUILD_INFO="(...)" \ -UCLOCK_MONOTONIC \ -DENOTSUP=1 \ -DHAVE_ATTR_PACKED \ -DHAVE_CONFIG_H \ -DSG_IO=1 \ -DSMARTMONTOOLS_SVN_REV="r1" \ -DSMARTMONTOOLS_ATTRIBUTELOG="/file" \ -DSMARTMONTOOLS_SAVESTATES="/file" \ -DSMARTMONTOOLS_DRIVEDBDIR="/dir" \ -Umakedev \ -Ustricmp \ --suppress=syntaxError:drivedb.h \ --suppress=asctime_rCalled:utility.cpp \ --suppress=asctime_sCalled:utility.cpp \ --suppress=bzeroCalled \ --suppress=bcopyCalled \ --suppress=ftimeCalled \ --suppress=readdirCalled \ --suppress=strtokCalled \ --suppress=missingOverride \ --suppress=unusedStructMember \ *.cpp *.h os_win32/*.cpp os_win32/*.h os_solaris.cpp:361: style: (variableScope) The scope of the variable 'trunc' can be reduced. os_solaris.cpp:227: style: (variableScope) The scope of the variable 't' can be reduced. os_win32/daemon_win32.cpp:421: warning: (ignoredReturnValue) Return value of function freopen() is not used. os_win32/daemon_win32.cpp:423: warning: (ignoredReturnValue) Return value of function freopen() is not used. os_win32/daemon_win32.cpp:425: warning: (ignoredReturnValue) Return value of function freopen() is not used. os_win32/popen_win32.cpp:172: style: (knownConditionTrueFalse) Condition 'exitcode>>23' is always false os_win32/syslog_win32.cpp:401: warning: (wrongPrintfScanfArgNum) vsyslog format string requires 0 parameters but 1 is given. scsicmds.cpp:94: style: (knownConditionTrueFalse) Condition 'bpos>=(bpstart+27)' is always false scsiprint.cpp:2319: style: (variableScope) The scope of the variable 'powerlimit' can be reduced. utility.cpp:799: warning: (invalidPrintfArgType_float) %Lf in format string (no. 1) requires 'long double' but the argument type is 'double'.