logging
Unit Tests
No unit tests written.
Clang Formatting
| File | Status |
|---|---|
| include/logging/Logging.hpp | ❌ Needs formatting |
| include/logging/detail/Logger.hxx | ❌ Needs formatting |
| include/logging/internal/macro.hpp | ❌ Needs formatting |
| include/logging/tmp.hpp | ❌ Needs formatting |
| test/apps/basic_functionality_example.cxx | ❌ Needs formatting |
| test/apps/debug_speed.cxx | ❌ Needs formatting |
| test/apps/exception_example.cxx | ❌ Needs formatting |
| test/apps/log_progress_update.cxx | ❌ Needs formatting |
| test/apps/multithreaded_warning_log.cxx | ❌ Needs formatting |
| test/apps/performance.cxx | ❌ Needs formatting |
| test/apps/six_streams.cxx | ❌ Needs formatting |
include/logging/Logging.hpp
Errors
- Line 96: Namespace should be terminated with '// namespace dunedaq::logging '
include/logging/internal/macro.hpp
Errors
- Line 0: The standard copyright message wasn't found.
- Line 52: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 72: C-style comment syntax detected; please use either C++ style "//" or Doxygen style
- Line 62: Namespace should be terminated with '// namespace namespace_name '
- Line 82: Namespace should be terminated with '// namespace namespace_name '
include/logging/tmp.hpp
Errors
- Line 0: The standard copyright message wasn't found.
- Line 0: No #ifndef header guard found, suggested CPP variable is: LOGGING_INCLUDE_LOGGING_TMP_HPP_
- Line 1: Namespace should be terminated with '// namespace dunedaq::logging '
- Line 1: Did you mean "else if"? If not, start a new line for "if".
- Line 1: Add #include
for string
test/apps/basic_functionality_example.cxx
Errors
- Line 41: Using C-style cast. Use static_cast
(...) instead
Warnings
- Line 11: macro 'TRACE_REV' used to declare a constant; consider using a 'constexpr' constant
- Line 338: variadic macro 'TRACE_REV_FROM_REVb' used; consider using a 'constexpr' variadic template function
- Line 428: function-like macro 'TRACE_ATOMIC_LOAD' used; consider a 'constexpr' template function
- Line 640: declaration uses identifier 'TRACE_PRINT__', which is a reserved identifier
- Line 648: macro 'TRACE_PAGESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 1139: function-like macro 'TRACE_TID2NAME' used; consider a 'constexpr' template function
- Line 1144: function-like macro 'TRACE_entSiz' used; consider a 'constexpr' template function
- Line 1211: multiple declarations in a single statement reduces readability
- Line 1253: do not use pointer arithmetic
- Line 1277: multiple declarations in a single statement reduces readability
- Line 1277: variable 'extp' is not initialized
- Line 1277: variable 'file_or_hdrf' is not initialized
- Line 1278: multiple declarations in a single statement reduces readability
- Line 1279: multiple declarations in a single statement reduces readability
- Line 1280: do not declare C-style arrays, use std::array<> instead
- Line 1364: do not use pointer arithmetic
- Line 1374: do not use pointer arithmetic
- Line 1378: do not use pointer arithmetic
- Line 1444: variable 'spec' is not initialized
- Line 1469: variable 'ret' is not initialized
- Line 1470: variable 'spec' is not initialized
- Line 1473: C-style casts are discouraged; use static_cast
- Line 1475: use nullptr
- Line 1476: use nullptr
- Line 1480: variable 'xx' is not initialized
- Line 1498: do not use pointer arithmetic
- Line 1503: C-style casts are discouraged; use static_cast
- Line 1515: multiple declarations in a single statement reduces readability
- Line 1515: variable 'tnow_ms' is not initialized
- Line 1516: variable 'do_print' is not initialized
- Line 1525: C-style casts are discouraged; use static_cast
- Line 1612: do not declare C-style arrays, use std::array<> instead
- Line 1614: multiple declarations in a single statement reduces readability
- Line 1614: variable 'ncpylen' is not initialized
- Line 1614: variable 'segment_len' is not initialized
- Line 1615: multiple declarations in a single statement reduces readability
- Line 1638: do not use pointer arithmetic
- Line 1651: do not use pointer arithmetic
- Line 1720: variable 'ii' is not initialized
- Line 1721: do not use pointer arithmetic
- Line 1730: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 1757: do not use pointer arithmetic
- Line 1786: do not declare C-style arrays, use std::array<> instead
- Line 1789: variable 'default_unknown_sav' is not initialized
- Line 1790: variable 'endptr' is not initialized
- Line 1792: variable 'print_cntl' is not initialized
- Line 1794: variable 'size' is not initialized
- Line 1795: multiple declarations in a single statement reduces readability
- Line 1798: do not declare C-style arrays, use std::array<> instead
- Line 1802: variable 'useconds' is not initialized
- Line 1815: function-like macro 'TRACE_PRINTSIZE' used; consider a 'constexpr' template function
- Line 1817: macro replacement list should be enclosed in parentheses
- Line 1817: macro argument should be enclosed in parentheses
- Line 1819: do not use pointer arithmetic
- Line 1852: do not use pointer arithmetic
- Line 1858: do not use pointer arithmetic
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1951: C-style casts are discouraged; use static_cast
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1987: do not use array subscript when the index is not an integer constant expression
- Line 2057: use nullptr
- Line 2066: C-style casts are discouraged; use static_cast (if needed, the cast may be redundant)
- Line 2071: C-style casts are discouraged; use static_cast
- Line 2072: do not use pointer arithmetic
- Line 2077: do not use pointer arithmetic
- Line 2086: casting (double + 0.5) to integer leads to incorrect rounding; consider using lround (#include
) instead - Line 2094: do not use array subscript when the index is not an integer constant expression
- Line 2124: do not use array subscript when the index is not an integer constant expression
- Line 2209: declaration uses identifier '___THROW', which is a reserved identifier
- Line 2221: variable 'rp' is not initialized
- Line 2222: do not declare C-style arrays, use std::array<> instead
- Line 2235: do not use pointer arithmetic
- Line 2254: variable 'msg_p' is not initialized
- Line 2255: variable 'params_p' is not initialized
- Line 2256: variable 'argIdx' is not initialized
- Line 2258: variable 'myIdxCnt' is not initialized
- Line 2259: variable 'desired' is not initialized
- Line 2260: multiple declarations in a single statement reduces readability
- Line 2260: variable 'len' is not initialized
- Line 2261: variable 'out' is not initialized
- Line 2265: variable 'chkpid' is not initialized
- Line 2316: macro 'TRACE_TSC_EXPERIMENT' used to declare a constant; consider using a 'constexpr' constant
- Line 2392: consider replacing 'long' with 'int64'
- Line 2394: do not use pointer arithmetic
- Line 2405: do not use pointer arithmetic
- Line 2414: do not use pointer arithmetic
- Line 2442: do not use pointer arithmetic
- Line 2459: C-style casts are discouraged; use static_cast
- Line 2480: do not use pointer arithmetic
- Line 2529: do not use pointer arithmetic
- Line 2539: multiple declarations in a single statement reduces readability
- Line 2539: variable 'ii' is not initialized
- Line 2539: variable 'len' is not initialized
- Line 2540: do not use pointer arithmetic
- Line 2572: do not use pointer arithmetic
- Line 2592: do not use pointer arithmetic
- Line 2623: variable 'sts' is not initialized
- Line 2629: variable 'ign' is not initialized
- Line 2630: do not declare C-style arrays, use std::array<> instead
- Line 2632: variable 'len' is not initialized
- Line 2633: consider replacing 'unsigned long long' with 'uint64'
- Line 2633: variable 'S' is not initialized
- Line 2638: C-style casts are discouraged; use static_cast
- Line 2643: do not use array subscript when the index is not an integer constant expression
- Line 2651: C-style casts are discouraged; use static_cast
- Line 2653: do not use pointer arithmetic
- Line 2661: do not use pointer arithmetic
- Line 2667: do not use array subscript when the index is not an integer constant expression
- Line 2674: C-style casts are discouraged; use static_cast
- Line 2674: use nullptr
- Line 2676: variable 'cnt' is not initialized
- Line 2677: multiple declarations in a single statement reduces readability
- Line 2677: variable 'off_ms' is not initialized
- Line 2713: potential uncovered code path; add a default label
- Line 2764: do not declare C-style arrays, use std::array<> instead
- Line 2816: variable 'tnam' is not initialized
- Line 2826: C-style casts are discouraged; use static_cast
- Line 2828: C-style casts are discouraged; use static_cast
- Line 2831: do not use pointer arithmetic
- Line 2836: C-style casts are discouraged; use static_cast
- Line 2871: multiple declarations in a single statement reduces readability
- Line 2871: variable 'lvlm' is not initialized
- Line 2871: variable 'lvls' is not initialized
- Line 2871: variable 'lvlt' is not initialized
- Line 2872: variable 'ee' is not initialized
- Line 2873: variable 'op' is not initialized
- Line 2874: do not use pointer arithmetic
- Line 2876: do not use pointer arithmetic
- Line 2903: consider replacing 'long' with 'int64'
- Line 2912: consider replacing 'long' with 'int64'
- Line 2921: consider replacing 'long' with 'int64'
- Line 2948: variable 'lvlm' is not initialized
- Line 2948: variable 'lvls' is not initialized
- Line 2948: variable 'lvlt' is not initialized
- Line 2949: multiple declarations in a single statement reduces readability
- Line 2950: variable 'op' is not initialized
- Line 2951: do not use pointer arithmetic
- Line 2967: C-style casts are discouraged; use static_cast
- Line 2970: do not use pointer arithmetic
- Line 3036: C-style casts are discouraged; use static_cast
- Line 3037: C-style casts are discouraged; use static_cast
- Line 3039: C-style casts are discouraged; use static_cast
- Line 3051: do not declare C-style arrays, use std::array<> instead
- Line 3057: do not use array subscript when the index is not an integer constant expression
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3097: C-style casts are discouraged; use static_cast
- Line 3099: C-style casts are discouraged; use static_cast
- Line 3100: C-style casts are discouraged; use static_cast
- Line 3117: do not use C-style cast to convert between unrelated types
- Line 3117: do not use pointer arithmetic
- Line 3118: do not use pointer arithmetic
- Line 3146: variable 'ii' is not initialized
- Line 3148: do not declare C-style arrays, use std::array<> instead
- Line 3155: use nullptr
- Line 3155: use nullptr
- Line 3157: do not use pointer arithmetic
- Line 3164: use nullptr
- Line 3164: use nullptr
- Line 3165: use nullptr
- Line 3166: do not use C-style cast to cast away constness
- Line 3175: do not use pointer arithmetic
- Line 3180: use nullptr
- Line 3182: variable 'period' is not initialized
- Line 3188: do not use pointer arithmetic
- Line 3222: use nullptr
- Line 3223: variable 'rw_rwp' is not initialized
- Line 3224: variable 'off' is not initialized
- Line 3225: do not declare C-style arrays, use std::array<> instead
- Line 3272: C-style casts are discouraged; use static_cast
- Line 3283: do not use C-style cast to convert between unrelated types
- Line 3283: use nullptr
- Line 3284: do not use C-style cast to convert between unrelated types
- Line 3313: do not use C-style cast to convert between unrelated types
- Line 3313: use nullptr
- Line 3313: C-style casts are discouraged; use static_cast
- Line 3314: do not use C-style cast to convert between unrelated types
- Line 3325: use nullptr
- Line 3326: do not use C-style cast to convert between unrelated types
- Line 3341: do not use C-style cast to convert between unrelated types
- Line 3341: use nullptr
- Line 3342: do not use C-style cast to convert between unrelated types
- Line 3353: do not use C-style cast to convert between unrelated types
- Line 3353: do not use pointer arithmetic
- Line 3354: do not use pointer arithmetic
- Line 3378: multiple declarations in a single statement reduces readability
- Line 3378: variable 'argsmax_' is not initialized
- Line 3378: variable 'numents_' is not initialized
- Line 3378: variable 'namtblents_' is not initialized
- Line 3378: variable 'nammax_' is not initialized
- Line 3379: variable 'cp' is not initialized
- Line 3381: multiple declarations in a single statement reduces readability
- Line 3382: variable 'lvlM_endptr' is not initialized
- Line 3383: variable 'sts' is not initialized
- Line 3385: variable '_file' is not initialized
- Line 3393: use nullptr
- Line 3395: do not declare C-style arrays, use std::array<> instead
- Line 3399: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead
- Line 3403: use nullptr
- Line 3413: use nullptr
- Line 3415: variable 'scratch_name' is not initialized
- Line 3424: C-style casts are discouraged; use static_cast
- Line 3424: use nullptr
- Line 3429: C-style casts are discouraged; use static_cast
- Line 3429: use nullptr
- Line 3431: C-style casts are discouraged; use static_cast
- Line 3431: use nullptr
- Line 3433: C-style casts are discouraged; use static_cast
- Line 3433: use nullptr
- Line 3435: C-style casts are discouraged; use static_cast
- Line 3435: use nullptr
- Line 3442: multiple declarations in a single statement reduces readability
- Line 3449: do not use array subscript when the index is not an integer constant expression
- Line 3453: do not use pointer arithmetic
- Line 3464: C-style casts are discouraged; use static_cast
- Line 3466: C-style casts are discouraged; use static_cast
- Line 3470: C-style casts are discouraged; use static_cast
- Line 3475: multiple declarations in a single statement reduces readability
- Line 3513: do not use array subscript when the index is not an integer constant expression
- Line 3529: do not use pointer arithmetic
- Line 3536: C-style casts are discouraged; use static_cast
- Line 3543: C-style casts are discouraged; use static_cast
- Line 3544: use nullptr
- Line 3554: macro 'TRACE_DISABLED_ENTS' used to declare a constant; consider using a 'constexpr' constant
- Line 3565: use nullptr
- Line 3572: use nullptr
- Line 3576: C-style casts are discouraged; use static_cast
- Line 3601: variable 'endptr' is not initialized
- Line 3606: do not use pointer arithmetic
- Line 3616: do not use pointer arithmetic
- Line 3670: variable 'ii' is not initialized
- Line 3671: variable 'TrcId' is not initialized
- Line 3673: do not use pointer arithmetic
- Line 3696: variable 'idx' is not initialized
- Line 3697: variable 'off' is not initialized
- Line 3700: either cast from 'uint32_t' (aka 'unsigned int') to 'off_t' (aka 'long') is ineffective, or there is loss of precision before the conversion
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use pointer arithmetic
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3708: do not use pointer arithmetic
- Line 3807: function-like macro 'TRACE_STREAMER_SCOPED' used; consider a 'constexpr' template function
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3868: macro argument should be enclosed in parentheses
- Line 3884: consider replacing 'unsigned long long' with 'uint64'
- Line 3940: converting integer literal to bool, use bool literal instead
- Line 3962: declaration uses identifier '_TRACE_M_flags', which is a reserved identifier
- Line 3970: do not use array subscript when the index is not an integer constant expression
- Line 4002: C-style casts are discouraged; use static_cast
- Line 4011: use nullptr
- Line 4012: use nullptr
- Line 4022: do not use array subscript when the index is not an integer constant expression
- Line 4031: do not use array subscript when the index is not an integer constant expression
- Line 4041: macro argument should be enclosed in parentheses
- Line 4047: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4219: consider replacing 'long' with 'int64'
- Line 4220: consider replacing 'long' with 'int64'
- Line 4246: do not use C-style cast to convert between unrelated types
- Line 4246: consider replacing 'unsigned long' with 'uint64'
- Line 4247: consider replacing 'unsigned long' with 'uint64'
- Line 4251: do not use array subscript when the index is not an integer constant expression
- Line 4273: consider replacing 'long' with 'int64'
- Line 4273: consider replacing 'long' with 'int64'
- Line 4274: consider replacing 'long' with 'int64'
- Line 4282: use nullptr
- Line 4284: do not use pointer arithmetic
- Line 4297: consider replacing 'long' with 'int64'
- Line 4298: consider replacing 'long' with 'int64'
- Line 4320: do not use C-style cast to convert between unrelated types
- Line 4320: consider replacing 'long' with 'int64'
- Line 4321: consider replacing 'long' with 'int64'
- Line 4343: do not use C-style cast to convert between unrelated types
- Line 4343: consider replacing 'unsigned long' with 'uint64'
- Line 4344: consider replacing 'unsigned long' with 'uint64'
- Line 4366: do not use C-style cast to convert between unrelated types
- Line 4366: consider replacing 'unsigned long' with 'uint64'
- Line 4367: consider replacing 'unsigned long' with 'uint64'
- Line 4374: use nullptr
- Line 4376: do not use pointer arithmetic
- Line 4389: do not use C-style cast to convert between unrelated types
- Line 4389: consider replacing 'unsigned long' with 'uint64'
- Line 4390: consider replacing 'unsigned long' with 'uint64'
- Line 4412: do not use C-style cast to convert between unrelated types
- Line 4413: do not use C-style cast to convert between unrelated types
- Line 4417: consider replacing 'unsigned long long' with 'uint64'
- Line 4439: do not use C-style cast to convert between unrelated types
- Line 4440: do not use C-style cast to convert between unrelated types
- Line 4444: consider replacing 'long long' with 'int64'
- Line 4466: do not use C-style cast to convert between unrelated types
- Line 4467: do not use C-style cast to convert between unrelated types
- Line 4471: do not use array subscript when the index is not an integer constant expression
- Line 4478: use nullptr
- Line 4480: do not use pointer arithmetic
- Line 4493: do not use C-style cast to convert between unrelated types
- Line 4496: do not use C-style cast to convert between unrelated types
- Line 4496: consider replacing 'unsigned long' with 'uint64'
- Line 4499: do not use array subscript when the index is not an integer constant expression
- Line 4522: do not use C-style cast to convert between unrelated types
- Line 4523: do not use C-style cast to convert between unrelated types
- Line 4527: do not use array subscript when the index is not an integer constant expression
- Line 4534: use nullptr
- Line 4536: do not use pointer arithmetic
- Line 4549: consider replacing 'long' with 'int64'
- Line 4551: consider replacing 'long' with 'int64'
- Line 4609: do not use C-style cast to convert between unrelated types
- Line 4610: do not use pointer arithmetic
- Line 4610: do not use array subscript when the index is not an integer constant expression
- Line 4689: use auto when initializing with a cast to avoid duplicating the type name
- Line 4689: do not use C-style cast to convert between unrelated types
- Line 4690: do not use pointer arithmetic
- Line 4690: do not use array subscript when the index is not an integer constant expression
- Line 4714: declaration uses identifier '__tstreamer', which is a reserved identifier
- Line 4714: initialization of '__tstreamer' with thread_local storage duration may throw an exception that cannot be caught
- Line 4745: C-style casts are discouraged; use static_cast/const_cast/reinterpret_cast
- Line 4759: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4795: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4827: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4859: function-like macro 'TRACENATE' used; consider a 'constexpr' template function
- Line 63: Null pointer passed to 1st parameter expecting 'nonnull'
- Line 78: converting integer literal to bool, use bool literal instead
- Line 84: variable 'cp' is not initialized
- Line 86: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined
- Line 27: variable 'retval' is not initialized
- Line 28: variable 'outp' is not initialized
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 40: do not use array subscript when the index is not an integer constant expression
- Line 45: do not use array subscript when the index is not an integer constant expression
- Line 48: do not use array subscript when the index is not an integer constant expression
- Line 49: do not use array subscript when the index is not an integer constant expression
- Line 52: do not use pointer arithmetic
- Line 55: do not use array subscript when the index is not an integer constant expression
- Line 56: do not use array subscript when the index is not an integer constant expression
- Line 63: do not use reinterpret_cast
- Line 116: misleading indentation; statement is not part of the previous 'else'
- Line 116: converting integer literal to bool, use bool literal instead
- Line 131: misleading indentation; statement is not part of the previous 'else'
- Line 131: converting integer literal to bool, use bool literal instead
- Line 216: do not declare C-style arrays, use std::array<> instead
- Line 218: do not use pointer arithmetic
- Line 225: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 229: do not declare C-style arrays, use std::array<> instead
- Line 240: narrowing conversion from 'rep' (aka 'long') to signed type 'int' is implementation-defined
- Line 252: format string is not a string literal (potentially insecure)
- Line 263: function-like macro 'SL_FRC' used; consider a 'constexpr' template function
- Line 266: function-like macro 'LOG1_' used; consider a 'constexpr' template function
- Line 267: function-like macro 'LOG2_' used; consider a 'constexpr' template function
- Line 268: variadic macro 'COMMA_IF_PARENS' used; consider using a 'constexpr' variadic template function
- Line 270: variadic macro 'EXPAND_' used; consider using a 'constexpr' variadic template function
- Line 271: variadic macro 'CHOOSE_' used; consider using a 'constexpr' variadic template function
- Line 274: declaration uses identifier 'LOG__', which is a reserved identifier
- Line 276: variadic macro '_tlog_ARG3' used; consider using a 'constexpr' variadic template function
- Line 21: macro 'DUNEDAQ_PACKAGE_NAME' used to declare a constant; consider using a 'constexpr' constant
- Line 72: The parameter must not be null
- Line 73: calling 'system' uses a command processor
- Line 123: calling 'system' uses a command processor
- Line 129: do not declare C-style arrays, use std::array<> instead
- Line 132: do not use array subscript when the index is not an integer constant expression
- Line 138: do not use array subscript when the index is not an integer constant expression
- Line 141: calling 'system' uses a command processor
test/apps/debug_speed.cxx
Warnings
- Line 11: macro 'TRACE_REV' used to declare a constant; consider using a 'constexpr' constant
- Line 338: variadic macro 'TRACE_REV_FROM_REVb' used; consider using a 'constexpr' variadic template function
- Line 428: function-like macro 'TRACE_ATOMIC_LOAD' used; consider a 'constexpr' template function
- Line 640: declaration uses identifier 'TRACE_PRINT__', which is a reserved identifier
- Line 648: macro 'TRACE_PAGESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 1139: function-like macro 'TRACE_TID2NAME' used; consider a 'constexpr' template function
- Line 1144: function-like macro 'TRACE_entSiz' used; consider a 'constexpr' template function
- Line 1211: multiple declarations in a single statement reduces readability
- Line 1253: do not use pointer arithmetic
- Line 1277: multiple declarations in a single statement reduces readability
- Line 1277: variable 'extp' is not initialized
- Line 1277: variable 'file_or_hdrf' is not initialized
- Line 1278: multiple declarations in a single statement reduces readability
- Line 1279: multiple declarations in a single statement reduces readability
- Line 1280: do not declare C-style arrays, use std::array<> instead
- Line 1364: do not use pointer arithmetic
- Line 1374: do not use pointer arithmetic
- Line 1378: do not use pointer arithmetic
- Line 1444: variable 'spec' is not initialized
- Line 1469: variable 'ret' is not initialized
- Line 1470: variable 'spec' is not initialized
- Line 1473: C-style casts are discouraged; use static_cast
- Line 1475: use nullptr
- Line 1476: use nullptr
- Line 1480: variable 'xx' is not initialized
- Line 1498: do not use pointer arithmetic
- Line 1503: C-style casts are discouraged; use static_cast
- Line 1515: multiple declarations in a single statement reduces readability
- Line 1515: variable 'tnow_ms' is not initialized
- Line 1516: variable 'do_print' is not initialized
- Line 1525: C-style casts are discouraged; use static_cast
- Line 1612: do not declare C-style arrays, use std::array<> instead
- Line 1614: multiple declarations in a single statement reduces readability
- Line 1614: variable 'ncpylen' is not initialized
- Line 1614: variable 'segment_len' is not initialized
- Line 1615: multiple declarations in a single statement reduces readability
- Line 1638: do not use pointer arithmetic
- Line 1651: do not use pointer arithmetic
- Line 1720: variable 'ii' is not initialized
- Line 1721: do not use pointer arithmetic
- Line 1730: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 1757: do not use pointer arithmetic
- Line 1786: do not declare C-style arrays, use std::array<> instead
- Line 1789: variable 'default_unknown_sav' is not initialized
- Line 1790: variable 'endptr' is not initialized
- Line 1792: variable 'print_cntl' is not initialized
- Line 1794: variable 'size' is not initialized
- Line 1795: multiple declarations in a single statement reduces readability
- Line 1798: do not declare C-style arrays, use std::array<> instead
- Line 1802: variable 'useconds' is not initialized
- Line 1815: function-like macro 'TRACE_PRINTSIZE' used; consider a 'constexpr' template function
- Line 1817: macro replacement list should be enclosed in parentheses
- Line 1817: macro argument should be enclosed in parentheses
- Line 1819: do not use pointer arithmetic
- Line 1852: do not use pointer arithmetic
- Line 1858: do not use pointer arithmetic
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1951: C-style casts are discouraged; use static_cast
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1987: do not use array subscript when the index is not an integer constant expression
- Line 2057: use nullptr
- Line 2066: C-style casts are discouraged; use static_cast (if needed, the cast may be redundant)
- Line 2071: C-style casts are discouraged; use static_cast
- Line 2072: do not use pointer arithmetic
- Line 2077: do not use pointer arithmetic
- Line 2086: casting (double + 0.5) to integer leads to incorrect rounding; consider using lround (#include
) instead - Line 2094: do not use array subscript when the index is not an integer constant expression
- Line 2124: do not use array subscript when the index is not an integer constant expression
- Line 2209: declaration uses identifier '___THROW', which is a reserved identifier
- Line 2221: variable 'rp' is not initialized
- Line 2222: do not declare C-style arrays, use std::array<> instead
- Line 2235: do not use pointer arithmetic
- Line 2254: variable 'msg_p' is not initialized
- Line 2255: variable 'params_p' is not initialized
- Line 2256: variable 'argIdx' is not initialized
- Line 2258: variable 'myIdxCnt' is not initialized
- Line 2259: variable 'desired' is not initialized
- Line 2260: multiple declarations in a single statement reduces readability
- Line 2260: variable 'len' is not initialized
- Line 2261: variable 'out' is not initialized
- Line 2265: variable 'chkpid' is not initialized
- Line 2316: macro 'TRACE_TSC_EXPERIMENT' used to declare a constant; consider using a 'constexpr' constant
- Line 2392: consider replacing 'long' with 'int64'
- Line 2394: do not use pointer arithmetic
- Line 2405: do not use pointer arithmetic
- Line 2414: do not use pointer arithmetic
- Line 2442: do not use pointer arithmetic
- Line 2459: C-style casts are discouraged; use static_cast
- Line 2480: do not use pointer arithmetic
- Line 2529: do not use pointer arithmetic
- Line 2539: multiple declarations in a single statement reduces readability
- Line 2539: variable 'ii' is not initialized
- Line 2539: variable 'len' is not initialized
- Line 2540: do not use pointer arithmetic
- Line 2572: do not use pointer arithmetic
- Line 2592: do not use pointer arithmetic
- Line 2623: variable 'sts' is not initialized
- Line 2629: variable 'ign' is not initialized
- Line 2630: do not declare C-style arrays, use std::array<> instead
- Line 2632: variable 'len' is not initialized
- Line 2633: consider replacing 'unsigned long long' with 'uint64'
- Line 2633: variable 'S' is not initialized
- Line 2638: C-style casts are discouraged; use static_cast
- Line 2643: do not use array subscript when the index is not an integer constant expression
- Line 2651: C-style casts are discouraged; use static_cast
- Line 2653: do not use pointer arithmetic
- Line 2661: do not use pointer arithmetic
- Line 2667: do not use array subscript when the index is not an integer constant expression
- Line 2674: C-style casts are discouraged; use static_cast
- Line 2674: use nullptr
- Line 2676: variable 'cnt' is not initialized
- Line 2677: multiple declarations in a single statement reduces readability
- Line 2677: variable 'off_ms' is not initialized
- Line 2713: potential uncovered code path; add a default label
- Line 2764: do not declare C-style arrays, use std::array<> instead
- Line 2816: variable 'tnam' is not initialized
- Line 2826: C-style casts are discouraged; use static_cast
- Line 2828: C-style casts are discouraged; use static_cast
- Line 2831: do not use pointer arithmetic
- Line 2836: C-style casts are discouraged; use static_cast
- Line 2871: multiple declarations in a single statement reduces readability
- Line 2871: variable 'lvlm' is not initialized
- Line 2871: variable 'lvls' is not initialized
- Line 2871: variable 'lvlt' is not initialized
- Line 2872: variable 'ee' is not initialized
- Line 2873: variable 'op' is not initialized
- Line 2874: do not use pointer arithmetic
- Line 2876: do not use pointer arithmetic
- Line 2903: consider replacing 'long' with 'int64'
- Line 2912: consider replacing 'long' with 'int64'
- Line 2921: consider replacing 'long' with 'int64'
- Line 2948: variable 'lvlm' is not initialized
- Line 2948: variable 'lvls' is not initialized
- Line 2948: variable 'lvlt' is not initialized
- Line 2949: multiple declarations in a single statement reduces readability
- Line 2950: variable 'op' is not initialized
- Line 2951: do not use pointer arithmetic
- Line 2967: C-style casts are discouraged; use static_cast
- Line 2970: do not use pointer arithmetic
- Line 3036: C-style casts are discouraged; use static_cast
- Line 3037: C-style casts are discouraged; use static_cast
- Line 3039: C-style casts are discouraged; use static_cast
- Line 3051: do not declare C-style arrays, use std::array<> instead
- Line 3057: do not use array subscript when the index is not an integer constant expression
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3097: C-style casts are discouraged; use static_cast
- Line 3099: C-style casts are discouraged; use static_cast
- Line 3100: C-style casts are discouraged; use static_cast
- Line 3117: do not use C-style cast to convert between unrelated types
- Line 3117: do not use pointer arithmetic
- Line 3118: do not use pointer arithmetic
- Line 3146: variable 'ii' is not initialized
- Line 3148: do not declare C-style arrays, use std::array<> instead
- Line 3155: use nullptr
- Line 3155: use nullptr
- Line 3157: do not use pointer arithmetic
- Line 3164: use nullptr
- Line 3164: use nullptr
- Line 3165: use nullptr
- Line 3166: do not use C-style cast to cast away constness
- Line 3175: do not use pointer arithmetic
- Line 3180: use nullptr
- Line 3182: variable 'period' is not initialized
- Line 3188: do not use pointer arithmetic
- Line 3222: use nullptr
- Line 3223: variable 'rw_rwp' is not initialized
- Line 3224: variable 'off' is not initialized
- Line 3225: do not declare C-style arrays, use std::array<> instead
- Line 3272: C-style casts are discouraged; use static_cast
- Line 3283: do not use C-style cast to convert between unrelated types
- Line 3283: use nullptr
- Line 3284: do not use C-style cast to convert between unrelated types
- Line 3313: do not use C-style cast to convert between unrelated types
- Line 3313: use nullptr
- Line 3313: C-style casts are discouraged; use static_cast
- Line 3314: do not use C-style cast to convert between unrelated types
- Line 3325: use nullptr
- Line 3326: do not use C-style cast to convert between unrelated types
- Line 3341: do not use C-style cast to convert between unrelated types
- Line 3341: use nullptr
- Line 3342: do not use C-style cast to convert between unrelated types
- Line 3353: do not use C-style cast to convert between unrelated types
- Line 3353: do not use pointer arithmetic
- Line 3354: do not use pointer arithmetic
- Line 3378: multiple declarations in a single statement reduces readability
- Line 3378: variable 'argsmax_' is not initialized
- Line 3378: variable 'numents_' is not initialized
- Line 3378: variable 'namtblents_' is not initialized
- Line 3378: variable 'nammax_' is not initialized
- Line 3379: variable 'cp' is not initialized
- Line 3381: multiple declarations in a single statement reduces readability
- Line 3382: variable 'lvlM_endptr' is not initialized
- Line 3383: variable 'sts' is not initialized
- Line 3385: variable '_file' is not initialized
- Line 3393: use nullptr
- Line 3395: do not declare C-style arrays, use std::array<> instead
- Line 3399: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead
- Line 3403: use nullptr
- Line 3413: use nullptr
- Line 3415: variable 'scratch_name' is not initialized
- Line 3424: C-style casts are discouraged; use static_cast
- Line 3424: use nullptr
- Line 3429: C-style casts are discouraged; use static_cast
- Line 3429: use nullptr
- Line 3431: C-style casts are discouraged; use static_cast
- Line 3431: use nullptr
- Line 3433: C-style casts are discouraged; use static_cast
- Line 3433: use nullptr
- Line 3435: C-style casts are discouraged; use static_cast
- Line 3435: use nullptr
- Line 3442: multiple declarations in a single statement reduces readability
- Line 3449: do not use array subscript when the index is not an integer constant expression
- Line 3453: do not use pointer arithmetic
- Line 3464: C-style casts are discouraged; use static_cast
- Line 3466: C-style casts are discouraged; use static_cast
- Line 3470: C-style casts are discouraged; use static_cast
- Line 3475: multiple declarations in a single statement reduces readability
- Line 3513: do not use array subscript when the index is not an integer constant expression
- Line 3529: do not use pointer arithmetic
- Line 3536: C-style casts are discouraged; use static_cast
- Line 3543: C-style casts are discouraged; use static_cast
- Line 3544: use nullptr
- Line 3554: macro 'TRACE_DISABLED_ENTS' used to declare a constant; consider using a 'constexpr' constant
- Line 3565: use nullptr
- Line 3572: use nullptr
- Line 3576: C-style casts are discouraged; use static_cast
- Line 3601: variable 'endptr' is not initialized
- Line 3606: do not use pointer arithmetic
- Line 3616: do not use pointer arithmetic
- Line 3670: variable 'ii' is not initialized
- Line 3671: variable 'TrcId' is not initialized
- Line 3673: do not use pointer arithmetic
- Line 3696: variable 'idx' is not initialized
- Line 3697: variable 'off' is not initialized
- Line 3700: either cast from 'uint32_t' (aka 'unsigned int') to 'off_t' (aka 'long') is ineffective, or there is loss of precision before the conversion
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use pointer arithmetic
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3708: do not use pointer arithmetic
- Line 3807: function-like macro 'TRACE_STREAMER_SCOPED' used; consider a 'constexpr' template function
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3868: macro argument should be enclosed in parentheses
- Line 3884: consider replacing 'unsigned long long' with 'uint64'
- Line 3940: converting integer literal to bool, use bool literal instead
- Line 3962: declaration uses identifier '_TRACE_M_flags', which is a reserved identifier
- Line 3970: do not use array subscript when the index is not an integer constant expression
- Line 4002: C-style casts are discouraged; use static_cast
- Line 4011: use nullptr
- Line 4012: use nullptr
- Line 4022: do not use array subscript when the index is not an integer constant expression
- Line 4031: do not use array subscript when the index is not an integer constant expression
- Line 4041: macro argument should be enclosed in parentheses
- Line 4047: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4219: consider replacing 'long' with 'int64'
- Line 4220: consider replacing 'long' with 'int64'
- Line 4246: do not use C-style cast to convert between unrelated types
- Line 4246: consider replacing 'unsigned long' with 'uint64'
- Line 4247: consider replacing 'unsigned long' with 'uint64'
- Line 4251: do not use array subscript when the index is not an integer constant expression
- Line 4273: consider replacing 'long' with 'int64'
- Line 4273: consider replacing 'long' with 'int64'
- Line 4274: consider replacing 'long' with 'int64'
- Line 4282: use nullptr
- Line 4284: do not use pointer arithmetic
- Line 4297: consider replacing 'long' with 'int64'
- Line 4298: consider replacing 'long' with 'int64'
- Line 4320: do not use C-style cast to convert between unrelated types
- Line 4320: consider replacing 'long' with 'int64'
- Line 4321: consider replacing 'long' with 'int64'
- Line 4343: do not use C-style cast to convert between unrelated types
- Line 4343: consider replacing 'unsigned long' with 'uint64'
- Line 4344: consider replacing 'unsigned long' with 'uint64'
- Line 4366: do not use C-style cast to convert between unrelated types
- Line 4366: consider replacing 'unsigned long' with 'uint64'
- Line 4367: consider replacing 'unsigned long' with 'uint64'
- Line 4374: use nullptr
- Line 4376: do not use pointer arithmetic
- Line 4389: do not use C-style cast to convert between unrelated types
- Line 4389: consider replacing 'unsigned long' with 'uint64'
- Line 4390: consider replacing 'unsigned long' with 'uint64'
- Line 4412: do not use C-style cast to convert between unrelated types
- Line 4413: do not use C-style cast to convert between unrelated types
- Line 4417: consider replacing 'unsigned long long' with 'uint64'
- Line 4439: do not use C-style cast to convert between unrelated types
- Line 4440: do not use C-style cast to convert between unrelated types
- Line 4444: consider replacing 'long long' with 'int64'
- Line 4466: do not use C-style cast to convert between unrelated types
- Line 4467: do not use C-style cast to convert between unrelated types
- Line 4471: do not use array subscript when the index is not an integer constant expression
- Line 4478: use nullptr
- Line 4480: do not use pointer arithmetic
- Line 4493: do not use C-style cast to convert between unrelated types
- Line 4496: do not use C-style cast to convert between unrelated types
- Line 4496: consider replacing 'unsigned long' with 'uint64'
- Line 4499: do not use array subscript when the index is not an integer constant expression
- Line 4522: do not use C-style cast to convert between unrelated types
- Line 4523: do not use C-style cast to convert between unrelated types
- Line 4527: do not use array subscript when the index is not an integer constant expression
- Line 4534: use nullptr
- Line 4536: do not use pointer arithmetic
- Line 4549: consider replacing 'long' with 'int64'
- Line 4551: consider replacing 'long' with 'int64'
- Line 4609: do not use C-style cast to convert between unrelated types
- Line 4610: do not use pointer arithmetic
- Line 4610: do not use array subscript when the index is not an integer constant expression
- Line 4689: use auto when initializing with a cast to avoid duplicating the type name
- Line 4689: do not use C-style cast to convert between unrelated types
- Line 4690: do not use pointer arithmetic
- Line 4690: do not use array subscript when the index is not an integer constant expression
- Line 4714: declaration uses identifier '__tstreamer', which is a reserved identifier
- Line 4714: initialization of '__tstreamer' with thread_local storage duration may throw an exception that cannot be caught
- Line 4745: C-style casts are discouraged; use static_cast/const_cast/reinterpret_cast
- Line 4759: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4795: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4827: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4859: function-like macro 'TRACENATE' used; consider a 'constexpr' template function
- Line 78: converting integer literal to bool, use bool literal instead
- Line 84: variable 'cp' is not initialized
- Line 86: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined
- Line 27: variable 'retval' is not initialized
- Line 28: variable 'outp' is not initialized
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 40: do not use array subscript when the index is not an integer constant expression
- Line 45: do not use array subscript when the index is not an integer constant expression
- Line 48: do not use array subscript when the index is not an integer constant expression
- Line 49: do not use array subscript when the index is not an integer constant expression
- Line 52: do not use pointer arithmetic
- Line 55: do not use array subscript when the index is not an integer constant expression
- Line 56: do not use array subscript when the index is not an integer constant expression
- Line 63: do not use reinterpret_cast
- Line 116: misleading indentation; statement is not part of the previous 'else'
- Line 116: converting integer literal to bool, use bool literal instead
- Line 131: misleading indentation; statement is not part of the previous 'else'
- Line 131: converting integer literal to bool, use bool literal instead
- Line 216: do not declare C-style arrays, use std::array<> instead
- Line 218: do not use pointer arithmetic
- Line 225: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 229: do not declare C-style arrays, use std::array<> instead
- Line 240: narrowing conversion from 'rep' (aka 'long') to signed type 'int' is implementation-defined
- Line 252: format string is not a string literal (potentially insecure)
- Line 263: function-like macro 'SL_FRC' used; consider a 'constexpr' template function
- Line 266: function-like macro 'LOG1_' used; consider a 'constexpr' template function
- Line 267: function-like macro 'LOG2_' used; consider a 'constexpr' template function
- Line 268: variadic macro 'COMMA_IF_PARENS' used; consider using a 'constexpr' variadic template function
- Line 270: variadic macro 'EXPAND_' used; consider using a 'constexpr' variadic template function
- Line 271: variadic macro 'CHOOSE_' used; consider using a 'constexpr' variadic template function
- Line 274: declaration uses identifier 'LOG__', which is a reserved identifier
- Line 276: variadic macro '_tlog_ARG3' used; consider using a 'constexpr' variadic template function
- Line 32: The parameter must not be null
- Line 33: calling 'system' uses a command processor
- Line 55: calling 'system' uses a command processor
test/apps/exception_example.cxx
Errors
- Line 15: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 70: "printf" should not be used for output in DUNE DAQ software.
Warnings
- Line 11: macro 'TRACE_REV' used to declare a constant; consider using a 'constexpr' constant
- Line 338: variadic macro 'TRACE_REV_FROM_REVb' used; consider using a 'constexpr' variadic template function
- Line 428: function-like macro 'TRACE_ATOMIC_LOAD' used; consider a 'constexpr' template function
- Line 640: declaration uses identifier 'TRACE_PRINT__', which is a reserved identifier
- Line 648: macro 'TRACE_PAGESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 1139: function-like macro 'TRACE_TID2NAME' used; consider a 'constexpr' template function
- Line 1144: function-like macro 'TRACE_entSiz' used; consider a 'constexpr' template function
- Line 1211: multiple declarations in a single statement reduces readability
- Line 1253: do not use pointer arithmetic
- Line 1277: multiple declarations in a single statement reduces readability
- Line 1277: variable 'extp' is not initialized
- Line 1277: variable 'file_or_hdrf' is not initialized
- Line 1278: multiple declarations in a single statement reduces readability
- Line 1279: multiple declarations in a single statement reduces readability
- Line 1280: do not declare C-style arrays, use std::array<> instead
- Line 1364: do not use pointer arithmetic
- Line 1374: do not use pointer arithmetic
- Line 1378: do not use pointer arithmetic
- Line 1444: variable 'spec' is not initialized
- Line 1469: variable 'ret' is not initialized
- Line 1470: variable 'spec' is not initialized
- Line 1473: C-style casts are discouraged; use static_cast
- Line 1475: use nullptr
- Line 1476: use nullptr
- Line 1480: variable 'xx' is not initialized
- Line 1498: do not use pointer arithmetic
- Line 1503: C-style casts are discouraged; use static_cast
- Line 1515: multiple declarations in a single statement reduces readability
- Line 1515: variable 'tnow_ms' is not initialized
- Line 1516: variable 'do_print' is not initialized
- Line 1525: C-style casts are discouraged; use static_cast
- Line 1612: do not declare C-style arrays, use std::array<> instead
- Line 1614: multiple declarations in a single statement reduces readability
- Line 1614: variable 'ncpylen' is not initialized
- Line 1614: variable 'segment_len' is not initialized
- Line 1615: multiple declarations in a single statement reduces readability
- Line 1638: do not use pointer arithmetic
- Line 1651: do not use pointer arithmetic
- Line 1720: variable 'ii' is not initialized
- Line 1721: do not use pointer arithmetic
- Line 1730: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 1757: do not use pointer arithmetic
- Line 1786: do not declare C-style arrays, use std::array<> instead
- Line 1789: variable 'default_unknown_sav' is not initialized
- Line 1790: variable 'endptr' is not initialized
- Line 1792: variable 'print_cntl' is not initialized
- Line 1794: variable 'size' is not initialized
- Line 1795: multiple declarations in a single statement reduces readability
- Line 1798: do not declare C-style arrays, use std::array<> instead
- Line 1802: variable 'useconds' is not initialized
- Line 1815: function-like macro 'TRACE_PRINTSIZE' used; consider a 'constexpr' template function
- Line 1817: macro replacement list should be enclosed in parentheses
- Line 1817: macro argument should be enclosed in parentheses
- Line 1819: do not use pointer arithmetic
- Line 1852: do not use pointer arithmetic
- Line 1858: do not use pointer arithmetic
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1951: C-style casts are discouraged; use static_cast
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1987: do not use array subscript when the index is not an integer constant expression
- Line 2057: use nullptr
- Line 2066: C-style casts are discouraged; use static_cast (if needed, the cast may be redundant)
- Line 2071: C-style casts are discouraged; use static_cast
- Line 2072: do not use pointer arithmetic
- Line 2077: do not use pointer arithmetic
- Line 2086: casting (double + 0.5) to integer leads to incorrect rounding; consider using lround (#include
) instead - Line 2094: do not use array subscript when the index is not an integer constant expression
- Line 2124: do not use array subscript when the index is not an integer constant expression
- Line 2209: declaration uses identifier '___THROW', which is a reserved identifier
- Line 2221: variable 'rp' is not initialized
- Line 2222: do not declare C-style arrays, use std::array<> instead
- Line 2235: do not use pointer arithmetic
- Line 2254: variable 'msg_p' is not initialized
- Line 2255: variable 'params_p' is not initialized
- Line 2256: variable 'argIdx' is not initialized
- Line 2258: variable 'myIdxCnt' is not initialized
- Line 2259: variable 'desired' is not initialized
- Line 2260: multiple declarations in a single statement reduces readability
- Line 2260: variable 'len' is not initialized
- Line 2261: variable 'out' is not initialized
- Line 2265: variable 'chkpid' is not initialized
- Line 2316: macro 'TRACE_TSC_EXPERIMENT' used to declare a constant; consider using a 'constexpr' constant
- Line 2392: consider replacing 'long' with 'int64'
- Line 2394: do not use pointer arithmetic
- Line 2405: do not use pointer arithmetic
- Line 2414: do not use pointer arithmetic
- Line 2442: do not use pointer arithmetic
- Line 2459: C-style casts are discouraged; use static_cast
- Line 2480: do not use pointer arithmetic
- Line 2529: do not use pointer arithmetic
- Line 2539: multiple declarations in a single statement reduces readability
- Line 2539: variable 'ii' is not initialized
- Line 2539: variable 'len' is not initialized
- Line 2540: do not use pointer arithmetic
- Line 2572: do not use pointer arithmetic
- Line 2592: do not use pointer arithmetic
- Line 2623: variable 'sts' is not initialized
- Line 2629: variable 'ign' is not initialized
- Line 2630: do not declare C-style arrays, use std::array<> instead
- Line 2632: variable 'len' is not initialized
- Line 2633: consider replacing 'unsigned long long' with 'uint64'
- Line 2633: variable 'S' is not initialized
- Line 2638: C-style casts are discouraged; use static_cast
- Line 2643: do not use array subscript when the index is not an integer constant expression
- Line 2651: C-style casts are discouraged; use static_cast
- Line 2653: do not use pointer arithmetic
- Line 2661: do not use pointer arithmetic
- Line 2667: do not use array subscript when the index is not an integer constant expression
- Line 2674: C-style casts are discouraged; use static_cast
- Line 2674: use nullptr
- Line 2676: variable 'cnt' is not initialized
- Line 2677: multiple declarations in a single statement reduces readability
- Line 2677: variable 'off_ms' is not initialized
- Line 2713: potential uncovered code path; add a default label
- Line 2764: do not declare C-style arrays, use std::array<> instead
- Line 2816: variable 'tnam' is not initialized
- Line 2826: C-style casts are discouraged; use static_cast
- Line 2828: C-style casts are discouraged; use static_cast
- Line 2831: do not use pointer arithmetic
- Line 2836: C-style casts are discouraged; use static_cast
- Line 2871: multiple declarations in a single statement reduces readability
- Line 2871: variable 'lvlm' is not initialized
- Line 2871: variable 'lvls' is not initialized
- Line 2871: variable 'lvlt' is not initialized
- Line 2872: variable 'ee' is not initialized
- Line 2873: variable 'op' is not initialized
- Line 2874: do not use pointer arithmetic
- Line 2876: do not use pointer arithmetic
- Line 2903: consider replacing 'long' with 'int64'
- Line 2912: consider replacing 'long' with 'int64'
- Line 2921: consider replacing 'long' with 'int64'
- Line 2948: variable 'lvlm' is not initialized
- Line 2948: variable 'lvls' is not initialized
- Line 2948: variable 'lvlt' is not initialized
- Line 2949: multiple declarations in a single statement reduces readability
- Line 2950: variable 'op' is not initialized
- Line 2951: do not use pointer arithmetic
- Line 2967: C-style casts are discouraged; use static_cast
- Line 2970: do not use pointer arithmetic
- Line 3036: C-style casts are discouraged; use static_cast
- Line 3037: C-style casts are discouraged; use static_cast
- Line 3039: C-style casts are discouraged; use static_cast
- Line 3051: do not declare C-style arrays, use std::array<> instead
- Line 3057: do not use array subscript when the index is not an integer constant expression
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3097: C-style casts are discouraged; use static_cast
- Line 3099: C-style casts are discouraged; use static_cast
- Line 3100: C-style casts are discouraged; use static_cast
- Line 3117: do not use C-style cast to convert between unrelated types
- Line 3117: do not use pointer arithmetic
- Line 3118: do not use pointer arithmetic
- Line 3146: variable 'ii' is not initialized
- Line 3148: do not declare C-style arrays, use std::array<> instead
- Line 3155: use nullptr
- Line 3155: use nullptr
- Line 3157: do not use pointer arithmetic
- Line 3164: use nullptr
- Line 3164: use nullptr
- Line 3165: use nullptr
- Line 3166: do not use C-style cast to cast away constness
- Line 3175: do not use pointer arithmetic
- Line 3180: use nullptr
- Line 3182: variable 'period' is not initialized
- Line 3188: do not use pointer arithmetic
- Line 3222: use nullptr
- Line 3223: variable 'rw_rwp' is not initialized
- Line 3224: variable 'off' is not initialized
- Line 3225: do not declare C-style arrays, use std::array<> instead
- Line 3272: C-style casts are discouraged; use static_cast
- Line 3283: do not use C-style cast to convert between unrelated types
- Line 3283: use nullptr
- Line 3284: do not use C-style cast to convert between unrelated types
- Line 3313: do not use C-style cast to convert between unrelated types
- Line 3313: use nullptr
- Line 3313: C-style casts are discouraged; use static_cast
- Line 3314: do not use C-style cast to convert between unrelated types
- Line 3325: use nullptr
- Line 3326: do not use C-style cast to convert between unrelated types
- Line 3341: do not use C-style cast to convert between unrelated types
- Line 3341: use nullptr
- Line 3342: do not use C-style cast to convert between unrelated types
- Line 3353: do not use C-style cast to convert between unrelated types
- Line 3353: do not use pointer arithmetic
- Line 3354: do not use pointer arithmetic
- Line 3378: multiple declarations in a single statement reduces readability
- Line 3378: variable 'argsmax_' is not initialized
- Line 3378: variable 'numents_' is not initialized
- Line 3378: variable 'namtblents_' is not initialized
- Line 3378: variable 'nammax_' is not initialized
- Line 3379: variable 'cp' is not initialized
- Line 3381: multiple declarations in a single statement reduces readability
- Line 3382: variable 'lvlM_endptr' is not initialized
- Line 3383: variable 'sts' is not initialized
- Line 3385: variable '_file' is not initialized
- Line 3393: use nullptr
- Line 3395: do not declare C-style arrays, use std::array<> instead
- Line 3399: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead
- Line 3403: use nullptr
- Line 3413: use nullptr
- Line 3415: variable 'scratch_name' is not initialized
- Line 3424: C-style casts are discouraged; use static_cast
- Line 3424: use nullptr
- Line 3429: C-style casts are discouraged; use static_cast
- Line 3429: use nullptr
- Line 3431: C-style casts are discouraged; use static_cast
- Line 3431: use nullptr
- Line 3433: C-style casts are discouraged; use static_cast
- Line 3433: use nullptr
- Line 3435: C-style casts are discouraged; use static_cast
- Line 3435: use nullptr
- Line 3442: multiple declarations in a single statement reduces readability
- Line 3449: do not use array subscript when the index is not an integer constant expression
- Line 3453: do not use pointer arithmetic
- Line 3464: C-style casts are discouraged; use static_cast
- Line 3466: C-style casts are discouraged; use static_cast
- Line 3470: C-style casts are discouraged; use static_cast
- Line 3475: multiple declarations in a single statement reduces readability
- Line 3513: do not use array subscript when the index is not an integer constant expression
- Line 3529: do not use pointer arithmetic
- Line 3536: C-style casts are discouraged; use static_cast
- Line 3543: C-style casts are discouraged; use static_cast
- Line 3544: use nullptr
- Line 3554: macro 'TRACE_DISABLED_ENTS' used to declare a constant; consider using a 'constexpr' constant
- Line 3565: use nullptr
- Line 3572: use nullptr
- Line 3576: C-style casts are discouraged; use static_cast
- Line 3601: variable 'endptr' is not initialized
- Line 3606: do not use pointer arithmetic
- Line 3616: do not use pointer arithmetic
- Line 3670: variable 'ii' is not initialized
- Line 3671: variable 'TrcId' is not initialized
- Line 3673: do not use pointer arithmetic
- Line 3696: variable 'idx' is not initialized
- Line 3697: variable 'off' is not initialized
- Line 3700: either cast from 'uint32_t' (aka 'unsigned int') to 'off_t' (aka 'long') is ineffective, or there is loss of precision before the conversion
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use pointer arithmetic
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3708: do not use pointer arithmetic
- Line 3807: function-like macro 'TRACE_STREAMER_SCOPED' used; consider a 'constexpr' template function
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3868: macro argument should be enclosed in parentheses
- Line 3884: consider replacing 'unsigned long long' with 'uint64'
- Line 3940: converting integer literal to bool, use bool literal instead
- Line 3962: declaration uses identifier '_TRACE_M_flags', which is a reserved identifier
- Line 3970: do not use array subscript when the index is not an integer constant expression
- Line 4002: C-style casts are discouraged; use static_cast
- Line 4011: use nullptr
- Line 4012: use nullptr
- Line 4022: do not use array subscript when the index is not an integer constant expression
- Line 4031: do not use array subscript when the index is not an integer constant expression
- Line 4041: macro argument should be enclosed in parentheses
- Line 4047: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4219: consider replacing 'long' with 'int64'
- Line 4220: consider replacing 'long' with 'int64'
- Line 4246: do not use C-style cast to convert between unrelated types
- Line 4246: consider replacing 'unsigned long' with 'uint64'
- Line 4247: consider replacing 'unsigned long' with 'uint64'
- Line 4251: do not use array subscript when the index is not an integer constant expression
- Line 4273: consider replacing 'long' with 'int64'
- Line 4273: consider replacing 'long' with 'int64'
- Line 4274: consider replacing 'long' with 'int64'
- Line 4282: use nullptr
- Line 4284: do not use pointer arithmetic
- Line 4297: consider replacing 'long' with 'int64'
- Line 4298: consider replacing 'long' with 'int64'
- Line 4320: do not use C-style cast to convert between unrelated types
- Line 4320: consider replacing 'long' with 'int64'
- Line 4321: consider replacing 'long' with 'int64'
- Line 4343: do not use C-style cast to convert between unrelated types
- Line 4343: consider replacing 'unsigned long' with 'uint64'
- Line 4344: consider replacing 'unsigned long' with 'uint64'
- Line 4366: do not use C-style cast to convert between unrelated types
- Line 4366: consider replacing 'unsigned long' with 'uint64'
- Line 4367: consider replacing 'unsigned long' with 'uint64'
- Line 4374: use nullptr
- Line 4376: do not use pointer arithmetic
- Line 4389: do not use C-style cast to convert between unrelated types
- Line 4389: consider replacing 'unsigned long' with 'uint64'
- Line 4390: consider replacing 'unsigned long' with 'uint64'
- Line 4412: do not use C-style cast to convert between unrelated types
- Line 4413: do not use C-style cast to convert between unrelated types
- Line 4417: consider replacing 'unsigned long long' with 'uint64'
- Line 4439: do not use C-style cast to convert between unrelated types
- Line 4440: do not use C-style cast to convert between unrelated types
- Line 4444: consider replacing 'long long' with 'int64'
- Line 4466: do not use C-style cast to convert between unrelated types
- Line 4467: do not use C-style cast to convert between unrelated types
- Line 4471: do not use array subscript when the index is not an integer constant expression
- Line 4478: use nullptr
- Line 4480: do not use pointer arithmetic
- Line 4493: do not use C-style cast to convert between unrelated types
- Line 4496: do not use C-style cast to convert between unrelated types
- Line 4496: consider replacing 'unsigned long' with 'uint64'
- Line 4499: do not use array subscript when the index is not an integer constant expression
- Line 4522: do not use C-style cast to convert between unrelated types
- Line 4523: do not use C-style cast to convert between unrelated types
- Line 4527: do not use array subscript when the index is not an integer constant expression
- Line 4534: use nullptr
- Line 4536: do not use pointer arithmetic
- Line 4549: consider replacing 'long' with 'int64'
- Line 4551: consider replacing 'long' with 'int64'
- Line 4609: do not use C-style cast to convert between unrelated types
- Line 4610: do not use pointer arithmetic
- Line 4610: do not use array subscript when the index is not an integer constant expression
- Line 4689: use auto when initializing with a cast to avoid duplicating the type name
- Line 4689: do not use C-style cast to convert between unrelated types
- Line 4690: do not use pointer arithmetic
- Line 4690: do not use array subscript when the index is not an integer constant expression
- Line 4714: declaration uses identifier '__tstreamer', which is a reserved identifier
- Line 4714: initialization of '__tstreamer' with thread_local storage duration may throw an exception that cannot be caught
- Line 4745: C-style casts are discouraged; use static_cast/const_cast/reinterpret_cast
- Line 4759: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4795: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4827: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4859: function-like macro 'TRACENATE' used; consider a 'constexpr' template function
- Line 63: Null pointer passed to 1st parameter expecting 'nonnull'
- Line 78: converting integer literal to bool, use bool literal instead
- Line 84: variable 'cp' is not initialized
- Line 86: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined
- Line 27: variable 'retval' is not initialized
- Line 28: variable 'outp' is not initialized
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 40: do not use array subscript when the index is not an integer constant expression
- Line 45: do not use array subscript when the index is not an integer constant expression
- Line 48: do not use array subscript when the index is not an integer constant expression
- Line 49: do not use array subscript when the index is not an integer constant expression
- Line 52: do not use pointer arithmetic
- Line 55: do not use array subscript when the index is not an integer constant expression
- Line 56: do not use array subscript when the index is not an integer constant expression
- Line 63: do not use reinterpret_cast
- Line 116: misleading indentation; statement is not part of the previous 'else'
- Line 116: converting integer literal to bool, use bool literal instead
- Line 131: misleading indentation; statement is not part of the previous 'else'
- Line 131: converting integer literal to bool, use bool literal instead
- Line 216: do not declare C-style arrays, use std::array<> instead
- Line 218: do not use pointer arithmetic
- Line 225: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 229: do not declare C-style arrays, use std::array<> instead
- Line 240: narrowing conversion from 'rep' (aka 'long') to signed type 'int' is implementation-defined
- Line 252: format string is not a string literal (potentially insecure)
- Line 263: function-like macro 'SL_FRC' used; consider a 'constexpr' template function
- Line 266: function-like macro 'LOG1_' used; consider a 'constexpr' template function
- Line 267: function-like macro 'LOG2_' used; consider a 'constexpr' template function
- Line 268: variadic macro 'COMMA_IF_PARENS' used; consider using a 'constexpr' variadic template function
- Line 270: variadic macro 'EXPAND_' used; consider using a 'constexpr' variadic template function
- Line 271: variadic macro 'CHOOSE_' used; consider using a 'constexpr' variadic template function
- Line 274: declaration uses identifier 'LOG__', which is a reserved identifier
- Line 276: variadic macro '_tlog_ARG3' used; consider using a 'constexpr' variadic template function
- Line 55: throwing an exception whose type 'int' is not derived from 'std::exception'
- Line 76: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined
- Line 76: do not use pointer arithmetic
test/apps/log_progress_update.cxx
Errors
- Line 0: The standard copyright message wasn't found.
- Line 41: An unsigned integer appears to be used here.
- Line 48: "cout" should not be used for output in DUNE DAQ software.
- Line 48: Use of Run Time Type Information not allowed unless this code is meant to test other code
- Line 54: "cout" should not be used for output in DUNE DAQ software.
- Line 19: Add #include
for string
Warnings
- Line 11: macro 'TRACE_REV' used to declare a constant; consider using a 'constexpr' constant
- Line 338: variadic macro 'TRACE_REV_FROM_REVb' used; consider using a 'constexpr' variadic template function
- Line 428: function-like macro 'TRACE_ATOMIC_LOAD' used; consider a 'constexpr' template function
- Line 640: declaration uses identifier 'TRACE_PRINT__', which is a reserved identifier
- Line 648: macro 'TRACE_PAGESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 1139: function-like macro 'TRACE_TID2NAME' used; consider a 'constexpr' template function
- Line 1144: function-like macro 'TRACE_entSiz' used; consider a 'constexpr' template function
- Line 1211: multiple declarations in a single statement reduces readability
- Line 1253: do not use pointer arithmetic
- Line 1277: multiple declarations in a single statement reduces readability
- Line 1277: variable 'extp' is not initialized
- Line 1277: variable 'file_or_hdrf' is not initialized
- Line 1278: multiple declarations in a single statement reduces readability
- Line 1279: multiple declarations in a single statement reduces readability
- Line 1280: do not declare C-style arrays, use std::array<> instead
- Line 1364: do not use pointer arithmetic
- Line 1374: do not use pointer arithmetic
- Line 1378: do not use pointer arithmetic
- Line 1444: variable 'spec' is not initialized
- Line 1469: variable 'ret' is not initialized
- Line 1470: variable 'spec' is not initialized
- Line 1473: C-style casts are discouraged; use static_cast
- Line 1475: use nullptr
- Line 1476: use nullptr
- Line 1480: variable 'xx' is not initialized
- Line 1498: do not use pointer arithmetic
- Line 1503: C-style casts are discouraged; use static_cast
- Line 1515: multiple declarations in a single statement reduces readability
- Line 1515: variable 'tnow_ms' is not initialized
- Line 1516: variable 'do_print' is not initialized
- Line 1525: C-style casts are discouraged; use static_cast
- Line 1612: do not declare C-style arrays, use std::array<> instead
- Line 1614: multiple declarations in a single statement reduces readability
- Line 1614: variable 'ncpylen' is not initialized
- Line 1614: variable 'segment_len' is not initialized
- Line 1615: multiple declarations in a single statement reduces readability
- Line 1638: do not use pointer arithmetic
- Line 1651: do not use pointer arithmetic
- Line 1720: variable 'ii' is not initialized
- Line 1721: do not use pointer arithmetic
- Line 1730: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 1757: do not use pointer arithmetic
- Line 1786: do not declare C-style arrays, use std::array<> instead
- Line 1789: variable 'default_unknown_sav' is not initialized
- Line 1790: variable 'endptr' is not initialized
- Line 1792: variable 'print_cntl' is not initialized
- Line 1794: variable 'size' is not initialized
- Line 1795: multiple declarations in a single statement reduces readability
- Line 1798: do not declare C-style arrays, use std::array<> instead
- Line 1802: variable 'useconds' is not initialized
- Line 1815: function-like macro 'TRACE_PRINTSIZE' used; consider a 'constexpr' template function
- Line 1817: macro replacement list should be enclosed in parentheses
- Line 1817: macro argument should be enclosed in parentheses
- Line 1819: do not use pointer arithmetic
- Line 1852: do not use pointer arithmetic
- Line 1858: do not use pointer arithmetic
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1951: C-style casts are discouraged; use static_cast
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1987: do not use array subscript when the index is not an integer constant expression
- Line 2057: use nullptr
- Line 2066: C-style casts are discouraged; use static_cast (if needed, the cast may be redundant)
- Line 2071: C-style casts are discouraged; use static_cast
- Line 2072: do not use pointer arithmetic
- Line 2077: do not use pointer arithmetic
- Line 2086: casting (double + 0.5) to integer leads to incorrect rounding; consider using lround (#include
) instead - Line 2094: do not use array subscript when the index is not an integer constant expression
- Line 2124: do not use array subscript when the index is not an integer constant expression
- Line 2209: declaration uses identifier '___THROW', which is a reserved identifier
- Line 2221: variable 'rp' is not initialized
- Line 2222: do not declare C-style arrays, use std::array<> instead
- Line 2235: do not use pointer arithmetic
- Line 2254: variable 'msg_p' is not initialized
- Line 2255: variable 'params_p' is not initialized
- Line 2256: variable 'argIdx' is not initialized
- Line 2258: variable 'myIdxCnt' is not initialized
- Line 2259: variable 'desired' is not initialized
- Line 2260: multiple declarations in a single statement reduces readability
- Line 2260: variable 'len' is not initialized
- Line 2261: variable 'out' is not initialized
- Line 2265: variable 'chkpid' is not initialized
- Line 2316: macro 'TRACE_TSC_EXPERIMENT' used to declare a constant; consider using a 'constexpr' constant
- Line 2392: consider replacing 'long' with 'int64'
- Line 2394: do not use pointer arithmetic
- Line 2405: do not use pointer arithmetic
- Line 2414: do not use pointer arithmetic
- Line 2442: do not use pointer arithmetic
- Line 2459: C-style casts are discouraged; use static_cast
- Line 2480: do not use pointer arithmetic
- Line 2529: do not use pointer arithmetic
- Line 2539: multiple declarations in a single statement reduces readability
- Line 2539: variable 'ii' is not initialized
- Line 2539: variable 'len' is not initialized
- Line 2540: do not use pointer arithmetic
- Line 2572: do not use pointer arithmetic
- Line 2592: do not use pointer arithmetic
- Line 2623: variable 'sts' is not initialized
- Line 2629: variable 'ign' is not initialized
- Line 2630: do not declare C-style arrays, use std::array<> instead
- Line 2632: variable 'len' is not initialized
- Line 2633: consider replacing 'unsigned long long' with 'uint64'
- Line 2633: variable 'S' is not initialized
- Line 2638: C-style casts are discouraged; use static_cast
- Line 2643: do not use array subscript when the index is not an integer constant expression
- Line 2651: C-style casts are discouraged; use static_cast
- Line 2653: do not use pointer arithmetic
- Line 2661: do not use pointer arithmetic
- Line 2667: do not use array subscript when the index is not an integer constant expression
- Line 2674: C-style casts are discouraged; use static_cast
- Line 2674: use nullptr
- Line 2676: variable 'cnt' is not initialized
- Line 2677: multiple declarations in a single statement reduces readability
- Line 2677: variable 'off_ms' is not initialized
- Line 2713: potential uncovered code path; add a default label
- Line 2764: do not declare C-style arrays, use std::array<> instead
- Line 2816: variable 'tnam' is not initialized
- Line 2826: C-style casts are discouraged; use static_cast
- Line 2828: C-style casts are discouraged; use static_cast
- Line 2831: do not use pointer arithmetic
- Line 2836: C-style casts are discouraged; use static_cast
- Line 2871: multiple declarations in a single statement reduces readability
- Line 2871: variable 'lvlm' is not initialized
- Line 2871: variable 'lvls' is not initialized
- Line 2871: variable 'lvlt' is not initialized
- Line 2872: variable 'ee' is not initialized
- Line 2873: variable 'op' is not initialized
- Line 2874: do not use pointer arithmetic
- Line 2876: do not use pointer arithmetic
- Line 2903: consider replacing 'long' with 'int64'
- Line 2912: consider replacing 'long' with 'int64'
- Line 2921: consider replacing 'long' with 'int64'
- Line 2948: variable 'lvlm' is not initialized
- Line 2948: variable 'lvls' is not initialized
- Line 2948: variable 'lvlt' is not initialized
- Line 2949: multiple declarations in a single statement reduces readability
- Line 2950: variable 'op' is not initialized
- Line 2951: do not use pointer arithmetic
- Line 2967: C-style casts are discouraged; use static_cast
- Line 2970: do not use pointer arithmetic
- Line 3036: C-style casts are discouraged; use static_cast
- Line 3037: C-style casts are discouraged; use static_cast
- Line 3039: C-style casts are discouraged; use static_cast
- Line 3051: do not declare C-style arrays, use std::array<> instead
- Line 3057: do not use array subscript when the index is not an integer constant expression
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3097: C-style casts are discouraged; use static_cast
- Line 3099: C-style casts are discouraged; use static_cast
- Line 3100: C-style casts are discouraged; use static_cast
- Line 3117: do not use C-style cast to convert between unrelated types
- Line 3117: do not use pointer arithmetic
- Line 3118: do not use pointer arithmetic
- Line 3146: variable 'ii' is not initialized
- Line 3148: do not declare C-style arrays, use std::array<> instead
- Line 3155: use nullptr
- Line 3155: use nullptr
- Line 3157: do not use pointer arithmetic
- Line 3164: use nullptr
- Line 3164: use nullptr
- Line 3165: use nullptr
- Line 3166: do not use C-style cast to cast away constness
- Line 3175: do not use pointer arithmetic
- Line 3180: use nullptr
- Line 3182: variable 'period' is not initialized
- Line 3188: do not use pointer arithmetic
- Line 3222: use nullptr
- Line 3223: variable 'rw_rwp' is not initialized
- Line 3224: variable 'off' is not initialized
- Line 3225: do not declare C-style arrays, use std::array<> instead
- Line 3272: C-style casts are discouraged; use static_cast
- Line 3283: do not use C-style cast to convert between unrelated types
- Line 3283: use nullptr
- Line 3284: do not use C-style cast to convert between unrelated types
- Line 3313: do not use C-style cast to convert between unrelated types
- Line 3313: use nullptr
- Line 3313: C-style casts are discouraged; use static_cast
- Line 3314: do not use C-style cast to convert between unrelated types
- Line 3325: use nullptr
- Line 3326: do not use C-style cast to convert between unrelated types
- Line 3341: do not use C-style cast to convert between unrelated types
- Line 3341: use nullptr
- Line 3342: do not use C-style cast to convert between unrelated types
- Line 3353: do not use C-style cast to convert between unrelated types
- Line 3353: do not use pointer arithmetic
- Line 3354: do not use pointer arithmetic
- Line 3378: multiple declarations in a single statement reduces readability
- Line 3378: variable 'argsmax_' is not initialized
- Line 3378: variable 'numents_' is not initialized
- Line 3378: variable 'namtblents_' is not initialized
- Line 3378: variable 'nammax_' is not initialized
- Line 3379: variable 'cp' is not initialized
- Line 3381: multiple declarations in a single statement reduces readability
- Line 3382: variable 'lvlM_endptr' is not initialized
- Line 3383: variable 'sts' is not initialized
- Line 3385: variable '_file' is not initialized
- Line 3393: use nullptr
- Line 3395: do not declare C-style arrays, use std::array<> instead
- Line 3399: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead
- Line 3403: use nullptr
- Line 3413: use nullptr
- Line 3415: variable 'scratch_name' is not initialized
- Line 3424: C-style casts are discouraged; use static_cast
- Line 3424: use nullptr
- Line 3429: C-style casts are discouraged; use static_cast
- Line 3429: use nullptr
- Line 3431: C-style casts are discouraged; use static_cast
- Line 3431: use nullptr
- Line 3433: C-style casts are discouraged; use static_cast
- Line 3433: use nullptr
- Line 3435: C-style casts are discouraged; use static_cast
- Line 3435: use nullptr
- Line 3442: multiple declarations in a single statement reduces readability
- Line 3449: do not use array subscript when the index is not an integer constant expression
- Line 3453: do not use pointer arithmetic
- Line 3464: C-style casts are discouraged; use static_cast
- Line 3466: C-style casts are discouraged; use static_cast
- Line 3470: C-style casts are discouraged; use static_cast
- Line 3475: multiple declarations in a single statement reduces readability
- Line 3513: do not use array subscript when the index is not an integer constant expression
- Line 3529: do not use pointer arithmetic
- Line 3536: C-style casts are discouraged; use static_cast
- Line 3543: C-style casts are discouraged; use static_cast
- Line 3544: use nullptr
- Line 3554: macro 'TRACE_DISABLED_ENTS' used to declare a constant; consider using a 'constexpr' constant
- Line 3565: use nullptr
- Line 3572: use nullptr
- Line 3576: C-style casts are discouraged; use static_cast
- Line 3601: variable 'endptr' is not initialized
- Line 3606: do not use pointer arithmetic
- Line 3616: do not use pointer arithmetic
- Line 3670: variable 'ii' is not initialized
- Line 3671: variable 'TrcId' is not initialized
- Line 3673: do not use pointer arithmetic
- Line 3696: variable 'idx' is not initialized
- Line 3697: variable 'off' is not initialized
- Line 3700: either cast from 'uint32_t' (aka 'unsigned int') to 'off_t' (aka 'long') is ineffective, or there is loss of precision before the conversion
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use pointer arithmetic
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3708: do not use pointer arithmetic
- Line 3807: function-like macro 'TRACE_STREAMER_SCOPED' used; consider a 'constexpr' template function
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3868: macro argument should be enclosed in parentheses
- Line 3884: consider replacing 'unsigned long long' with 'uint64'
- Line 3940: converting integer literal to bool, use bool literal instead
- Line 3962: declaration uses identifier '_TRACE_M_flags', which is a reserved identifier
- Line 3970: do not use array subscript when the index is not an integer constant expression
- Line 4002: C-style casts are discouraged; use static_cast
- Line 4011: use nullptr
- Line 4012: use nullptr
- Line 4022: do not use array subscript when the index is not an integer constant expression
- Line 4031: do not use array subscript when the index is not an integer constant expression
- Line 4041: macro argument should be enclosed in parentheses
- Line 4047: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4219: consider replacing 'long' with 'int64'
- Line 4220: consider replacing 'long' with 'int64'
- Line 4246: do not use C-style cast to convert between unrelated types
- Line 4246: consider replacing 'unsigned long' with 'uint64'
- Line 4247: consider replacing 'unsigned long' with 'uint64'
- Line 4251: do not use array subscript when the index is not an integer constant expression
- Line 4273: consider replacing 'long' with 'int64'
- Line 4273: consider replacing 'long' with 'int64'
- Line 4274: consider replacing 'long' with 'int64'
- Line 4282: use nullptr
- Line 4284: do not use pointer arithmetic
- Line 4297: consider replacing 'long' with 'int64'
- Line 4298: consider replacing 'long' with 'int64'
- Line 4320: do not use C-style cast to convert between unrelated types
- Line 4320: consider replacing 'long' with 'int64'
- Line 4321: consider replacing 'long' with 'int64'
- Line 4343: do not use C-style cast to convert between unrelated types
- Line 4343: consider replacing 'unsigned long' with 'uint64'
- Line 4344: consider replacing 'unsigned long' with 'uint64'
- Line 4366: do not use C-style cast to convert between unrelated types
- Line 4366: consider replacing 'unsigned long' with 'uint64'
- Line 4367: consider replacing 'unsigned long' with 'uint64'
- Line 4374: use nullptr
- Line 4376: do not use pointer arithmetic
- Line 4389: do not use C-style cast to convert between unrelated types
- Line 4389: consider replacing 'unsigned long' with 'uint64'
- Line 4390: consider replacing 'unsigned long' with 'uint64'
- Line 4412: do not use C-style cast to convert between unrelated types
- Line 4413: do not use C-style cast to convert between unrelated types
- Line 4417: consider replacing 'unsigned long long' with 'uint64'
- Line 4439: do not use C-style cast to convert between unrelated types
- Line 4440: do not use C-style cast to convert between unrelated types
- Line 4444: consider replacing 'long long' with 'int64'
- Line 4466: do not use C-style cast to convert between unrelated types
- Line 4467: do not use C-style cast to convert between unrelated types
- Line 4471: do not use array subscript when the index is not an integer constant expression
- Line 4478: use nullptr
- Line 4480: do not use pointer arithmetic
- Line 4493: do not use C-style cast to convert between unrelated types
- Line 4496: do not use C-style cast to convert between unrelated types
- Line 4496: consider replacing 'unsigned long' with 'uint64'
- Line 4499: do not use array subscript when the index is not an integer constant expression
- Line 4522: do not use C-style cast to convert between unrelated types
- Line 4523: do not use C-style cast to convert between unrelated types
- Line 4527: do not use array subscript when the index is not an integer constant expression
- Line 4534: use nullptr
- Line 4536: do not use pointer arithmetic
- Line 4549: consider replacing 'long' with 'int64'
- Line 4551: consider replacing 'long' with 'int64'
- Line 4609: do not use C-style cast to convert between unrelated types
- Line 4610: do not use pointer arithmetic
- Line 4610: do not use array subscript when the index is not an integer constant expression
- Line 4689: use auto when initializing with a cast to avoid duplicating the type name
- Line 4689: do not use C-style cast to convert between unrelated types
- Line 4690: do not use pointer arithmetic
- Line 4690: do not use array subscript when the index is not an integer constant expression
- Line 4714: declaration uses identifier '__tstreamer', which is a reserved identifier
- Line 4714: initialization of '__tstreamer' with thread_local storage duration may throw an exception that cannot be caught
- Line 4745: C-style casts are discouraged; use static_cast/const_cast/reinterpret_cast
- Line 4759: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4795: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4827: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4859: function-like macro 'TRACENATE' used; consider a 'constexpr' template function
- Line 63: Null pointer passed to 1st parameter expecting 'nonnull'
- Line 78: converting integer literal to bool, use bool literal instead
- Line 84: variable 'cp' is not initialized
- Line 86: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined
- Line 27: variable 'retval' is not initialized
- Line 28: variable 'outp' is not initialized
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 40: do not use array subscript when the index is not an integer constant expression
- Line 45: do not use array subscript when the index is not an integer constant expression
- Line 48: do not use array subscript when the index is not an integer constant expression
- Line 49: do not use array subscript when the index is not an integer constant expression
- Line 52: do not use pointer arithmetic
- Line 55: do not use array subscript when the index is not an integer constant expression
- Line 56: do not use array subscript when the index is not an integer constant expression
- Line 63: do not use reinterpret_cast
- Line 116: misleading indentation; statement is not part of the previous 'else'
- Line 116: converting integer literal to bool, use bool literal instead
- Line 131: misleading indentation; statement is not part of the previous 'else'
- Line 131: converting integer literal to bool, use bool literal instead
- Line 216: do not declare C-style arrays, use std::array<> instead
- Line 218: do not use pointer arithmetic
- Line 225: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 229: do not declare C-style arrays, use std::array<> instead
- Line 240: narrowing conversion from 'rep' (aka 'long') to signed type 'int' is implementation-defined
- Line 252: format string is not a string literal (potentially insecure)
- Line 263: function-like macro 'SL_FRC' used; consider a 'constexpr' template function
- Line 266: function-like macro 'LOG1_' used; consider a 'constexpr' template function
- Line 267: function-like macro 'LOG2_' used; consider a 'constexpr' template function
- Line 268: variadic macro 'COMMA_IF_PARENS' used; consider using a 'constexpr' variadic template function
- Line 270: variadic macro 'EXPAND_' used; consider using a 'constexpr' variadic template function
- Line 271: variadic macro 'CHOOSE_' used; consider using a 'constexpr' variadic template function
- Line 274: declaration uses identifier 'LOG__', which is a reserved identifier
- Line 276: variadic macro '_tlog_ARG3' used; consider using a 'constexpr' variadic template function
- Line 2: macro 'DUNEDAQ_PACKAGE_NAME' used to declare a constant; consider using a 'constexpr' constant
test/apps/multithreaded_warning_log.cxx
Errors
- Line 18: "printf" should not be used for output in DUNE DAQ software.
- Line 18: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 24: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 35: Using C-style cast. Use static_cast
(...) instead
Warnings
- Line 11: macro 'TRACE_REV' used to declare a constant; consider using a 'constexpr' constant
- Line 338: variadic macro 'TRACE_REV_FROM_REVb' used; consider using a 'constexpr' variadic template function
- Line 428: function-like macro 'TRACE_ATOMIC_LOAD' used; consider a 'constexpr' template function
- Line 640: declaration uses identifier 'TRACE_PRINT__', which is a reserved identifier
- Line 648: macro 'TRACE_PAGESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 1139: function-like macro 'TRACE_TID2NAME' used; consider a 'constexpr' template function
- Line 1144: function-like macro 'TRACE_entSiz' used; consider a 'constexpr' template function
- Line 1211: multiple declarations in a single statement reduces readability
- Line 1253: do not use pointer arithmetic
- Line 1277: multiple declarations in a single statement reduces readability
- Line 1277: variable 'extp' is not initialized
- Line 1277: variable 'file_or_hdrf' is not initialized
- Line 1278: multiple declarations in a single statement reduces readability
- Line 1279: multiple declarations in a single statement reduces readability
- Line 1280: do not declare C-style arrays, use std::array<> instead
- Line 1364: do not use pointer arithmetic
- Line 1374: do not use pointer arithmetic
- Line 1378: do not use pointer arithmetic
- Line 1444: variable 'spec' is not initialized
- Line 1469: variable 'ret' is not initialized
- Line 1470: variable 'spec' is not initialized
- Line 1473: C-style casts are discouraged; use static_cast
- Line 1475: use nullptr
- Line 1476: use nullptr
- Line 1480: variable 'xx' is not initialized
- Line 1498: do not use pointer arithmetic
- Line 1503: C-style casts are discouraged; use static_cast
- Line 1515: multiple declarations in a single statement reduces readability
- Line 1515: variable 'tnow_ms' is not initialized
- Line 1516: variable 'do_print' is not initialized
- Line 1525: C-style casts are discouraged; use static_cast
- Line 1612: do not declare C-style arrays, use std::array<> instead
- Line 1614: multiple declarations in a single statement reduces readability
- Line 1614: variable 'ncpylen' is not initialized
- Line 1614: variable 'segment_len' is not initialized
- Line 1615: multiple declarations in a single statement reduces readability
- Line 1638: do not use pointer arithmetic
- Line 1651: do not use pointer arithmetic
- Line 1720: variable 'ii' is not initialized
- Line 1721: do not use pointer arithmetic
- Line 1730: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 1757: do not use pointer arithmetic
- Line 1786: do not declare C-style arrays, use std::array<> instead
- Line 1789: variable 'default_unknown_sav' is not initialized
- Line 1790: variable 'endptr' is not initialized
- Line 1792: variable 'print_cntl' is not initialized
- Line 1794: variable 'size' is not initialized
- Line 1795: multiple declarations in a single statement reduces readability
- Line 1798: do not declare C-style arrays, use std::array<> instead
- Line 1802: variable 'useconds' is not initialized
- Line 1815: function-like macro 'TRACE_PRINTSIZE' used; consider a 'constexpr' template function
- Line 1817: macro replacement list should be enclosed in parentheses
- Line 1817: macro argument should be enclosed in parentheses
- Line 1819: do not use pointer arithmetic
- Line 1852: do not use pointer arithmetic
- Line 1858: do not use pointer arithmetic
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1951: C-style casts are discouraged; use static_cast
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1987: do not use array subscript when the index is not an integer constant expression
- Line 2057: use nullptr
- Line 2066: C-style casts are discouraged; use static_cast (if needed, the cast may be redundant)
- Line 2071: C-style casts are discouraged; use static_cast
- Line 2072: do not use pointer arithmetic
- Line 2077: do not use pointer arithmetic
- Line 2086: casting (double + 0.5) to integer leads to incorrect rounding; consider using lround (#include
) instead - Line 2094: do not use array subscript when the index is not an integer constant expression
- Line 2124: do not use array subscript when the index is not an integer constant expression
- Line 2209: declaration uses identifier '___THROW', which is a reserved identifier
- Line 2221: variable 'rp' is not initialized
- Line 2222: do not declare C-style arrays, use std::array<> instead
- Line 2235: do not use pointer arithmetic
- Line 2254: variable 'msg_p' is not initialized
- Line 2255: variable 'params_p' is not initialized
- Line 2256: variable 'argIdx' is not initialized
- Line 2258: variable 'myIdxCnt' is not initialized
- Line 2259: variable 'desired' is not initialized
- Line 2260: multiple declarations in a single statement reduces readability
- Line 2260: variable 'len' is not initialized
- Line 2261: variable 'out' is not initialized
- Line 2265: variable 'chkpid' is not initialized
- Line 2316: macro 'TRACE_TSC_EXPERIMENT' used to declare a constant; consider using a 'constexpr' constant
- Line 2392: consider replacing 'long' with 'int64'
- Line 2394: do not use pointer arithmetic
- Line 2405: do not use pointer arithmetic
- Line 2414: do not use pointer arithmetic
- Line 2442: do not use pointer arithmetic
- Line 2459: C-style casts are discouraged; use static_cast
- Line 2480: do not use pointer arithmetic
- Line 2529: do not use pointer arithmetic
- Line 2539: multiple declarations in a single statement reduces readability
- Line 2539: variable 'ii' is not initialized
- Line 2539: variable 'len' is not initialized
- Line 2540: do not use pointer arithmetic
- Line 2572: do not use pointer arithmetic
- Line 2592: do not use pointer arithmetic
- Line 2623: variable 'sts' is not initialized
- Line 2629: variable 'ign' is not initialized
- Line 2630: do not declare C-style arrays, use std::array<> instead
- Line 2632: variable 'len' is not initialized
- Line 2633: consider replacing 'unsigned long long' with 'uint64'
- Line 2633: variable 'S' is not initialized
- Line 2638: C-style casts are discouraged; use static_cast
- Line 2643: do not use array subscript when the index is not an integer constant expression
- Line 2651: C-style casts are discouraged; use static_cast
- Line 2653: do not use pointer arithmetic
- Line 2661: do not use pointer arithmetic
- Line 2667: do not use array subscript when the index is not an integer constant expression
- Line 2674: C-style casts are discouraged; use static_cast
- Line 2674: use nullptr
- Line 2676: variable 'cnt' is not initialized
- Line 2677: multiple declarations in a single statement reduces readability
- Line 2677: variable 'off_ms' is not initialized
- Line 2713: potential uncovered code path; add a default label
- Line 2764: do not declare C-style arrays, use std::array<> instead
- Line 2816: variable 'tnam' is not initialized
- Line 2826: C-style casts are discouraged; use static_cast
- Line 2828: C-style casts are discouraged; use static_cast
- Line 2831: do not use pointer arithmetic
- Line 2836: C-style casts are discouraged; use static_cast
- Line 2871: multiple declarations in a single statement reduces readability
- Line 2871: variable 'lvlm' is not initialized
- Line 2871: variable 'lvls' is not initialized
- Line 2871: variable 'lvlt' is not initialized
- Line 2872: variable 'ee' is not initialized
- Line 2873: variable 'op' is not initialized
- Line 2874: do not use pointer arithmetic
- Line 2876: do not use pointer arithmetic
- Line 2903: consider replacing 'long' with 'int64'
- Line 2912: consider replacing 'long' with 'int64'
- Line 2921: consider replacing 'long' with 'int64'
- Line 2948: variable 'lvlm' is not initialized
- Line 2948: variable 'lvls' is not initialized
- Line 2948: variable 'lvlt' is not initialized
- Line 2949: multiple declarations in a single statement reduces readability
- Line 2950: variable 'op' is not initialized
- Line 2951: do not use pointer arithmetic
- Line 2967: C-style casts are discouraged; use static_cast
- Line 2970: do not use pointer arithmetic
- Line 3036: C-style casts are discouraged; use static_cast
- Line 3037: C-style casts are discouraged; use static_cast
- Line 3039: C-style casts are discouraged; use static_cast
- Line 3051: do not declare C-style arrays, use std::array<> instead
- Line 3057: do not use array subscript when the index is not an integer constant expression
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3097: C-style casts are discouraged; use static_cast
- Line 3099: C-style casts are discouraged; use static_cast
- Line 3100: C-style casts are discouraged; use static_cast
- Line 3117: do not use C-style cast to convert between unrelated types
- Line 3117: do not use pointer arithmetic
- Line 3118: do not use pointer arithmetic
- Line 3146: variable 'ii' is not initialized
- Line 3148: do not declare C-style arrays, use std::array<> instead
- Line 3155: use nullptr
- Line 3155: use nullptr
- Line 3157: do not use pointer arithmetic
- Line 3164: use nullptr
- Line 3164: use nullptr
- Line 3165: use nullptr
- Line 3166: do not use C-style cast to cast away constness
- Line 3175: do not use pointer arithmetic
- Line 3180: use nullptr
- Line 3182: variable 'period' is not initialized
- Line 3188: do not use pointer arithmetic
- Line 3222: use nullptr
- Line 3223: variable 'rw_rwp' is not initialized
- Line 3224: variable 'off' is not initialized
- Line 3225: do not declare C-style arrays, use std::array<> instead
- Line 3272: C-style casts are discouraged; use static_cast
- Line 3283: do not use C-style cast to convert between unrelated types
- Line 3283: use nullptr
- Line 3284: do not use C-style cast to convert between unrelated types
- Line 3313: do not use C-style cast to convert between unrelated types
- Line 3313: use nullptr
- Line 3313: C-style casts are discouraged; use static_cast
- Line 3314: do not use C-style cast to convert between unrelated types
- Line 3325: use nullptr
- Line 3326: do not use C-style cast to convert between unrelated types
- Line 3341: do not use C-style cast to convert between unrelated types
- Line 3341: use nullptr
- Line 3342: do not use C-style cast to convert between unrelated types
- Line 3353: do not use C-style cast to convert between unrelated types
- Line 3353: do not use pointer arithmetic
- Line 3354: do not use pointer arithmetic
- Line 3378: multiple declarations in a single statement reduces readability
- Line 3378: variable 'argsmax_' is not initialized
- Line 3378: variable 'numents_' is not initialized
- Line 3378: variable 'namtblents_' is not initialized
- Line 3378: variable 'nammax_' is not initialized
- Line 3379: variable 'cp' is not initialized
- Line 3381: multiple declarations in a single statement reduces readability
- Line 3382: variable 'lvlM_endptr' is not initialized
- Line 3383: variable 'sts' is not initialized
- Line 3385: variable '_file' is not initialized
- Line 3393: use nullptr
- Line 3395: do not declare C-style arrays, use std::array<> instead
- Line 3399: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead
- Line 3403: use nullptr
- Line 3413: use nullptr
- Line 3415: variable 'scratch_name' is not initialized
- Line 3424: C-style casts are discouraged; use static_cast
- Line 3424: use nullptr
- Line 3429: C-style casts are discouraged; use static_cast
- Line 3429: use nullptr
- Line 3431: C-style casts are discouraged; use static_cast
- Line 3431: use nullptr
- Line 3433: C-style casts are discouraged; use static_cast
- Line 3433: use nullptr
- Line 3435: C-style casts are discouraged; use static_cast
- Line 3435: use nullptr
- Line 3442: multiple declarations in a single statement reduces readability
- Line 3449: do not use array subscript when the index is not an integer constant expression
- Line 3453: do not use pointer arithmetic
- Line 3464: C-style casts are discouraged; use static_cast
- Line 3466: C-style casts are discouraged; use static_cast
- Line 3470: C-style casts are discouraged; use static_cast
- Line 3475: multiple declarations in a single statement reduces readability
- Line 3513: do not use array subscript when the index is not an integer constant expression
- Line 3529: do not use pointer arithmetic
- Line 3536: C-style casts are discouraged; use static_cast
- Line 3543: C-style casts are discouraged; use static_cast
- Line 3544: use nullptr
- Line 3554: macro 'TRACE_DISABLED_ENTS' used to declare a constant; consider using a 'constexpr' constant
- Line 3565: use nullptr
- Line 3572: use nullptr
- Line 3576: C-style casts are discouraged; use static_cast
- Line 3601: variable 'endptr' is not initialized
- Line 3606: do not use pointer arithmetic
- Line 3616: do not use pointer arithmetic
- Line 3670: variable 'ii' is not initialized
- Line 3671: variable 'TrcId' is not initialized
- Line 3673: do not use pointer arithmetic
- Line 3696: variable 'idx' is not initialized
- Line 3697: variable 'off' is not initialized
- Line 3700: either cast from 'uint32_t' (aka 'unsigned int') to 'off_t' (aka 'long') is ineffective, or there is loss of precision before the conversion
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use pointer arithmetic
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3708: do not use pointer arithmetic
- Line 3807: function-like macro 'TRACE_STREAMER_SCOPED' used; consider a 'constexpr' template function
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3868: macro argument should be enclosed in parentheses
- Line 3884: consider replacing 'unsigned long long' with 'uint64'
- Line 3940: converting integer literal to bool, use bool literal instead
- Line 3962: declaration uses identifier '_TRACE_M_flags', which is a reserved identifier
- Line 3970: do not use array subscript when the index is not an integer constant expression
- Line 4002: C-style casts are discouraged; use static_cast
- Line 4011: use nullptr
- Line 4012: use nullptr
- Line 4022: do not use array subscript when the index is not an integer constant expression
- Line 4031: do not use array subscript when the index is not an integer constant expression
- Line 4041: macro argument should be enclosed in parentheses
- Line 4047: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4219: consider replacing 'long' with 'int64'
- Line 4220: consider replacing 'long' with 'int64'
- Line 4246: do not use C-style cast to convert between unrelated types
- Line 4246: consider replacing 'unsigned long' with 'uint64'
- Line 4247: consider replacing 'unsigned long' with 'uint64'
- Line 4251: do not use array subscript when the index is not an integer constant expression
- Line 4273: consider replacing 'long' with 'int64'
- Line 4273: consider replacing 'long' with 'int64'
- Line 4274: consider replacing 'long' with 'int64'
- Line 4282: use nullptr
- Line 4284: do not use pointer arithmetic
- Line 4297: consider replacing 'long' with 'int64'
- Line 4298: consider replacing 'long' with 'int64'
- Line 4320: do not use C-style cast to convert between unrelated types
- Line 4320: consider replacing 'long' with 'int64'
- Line 4321: consider replacing 'long' with 'int64'
- Line 4343: do not use C-style cast to convert between unrelated types
- Line 4343: consider replacing 'unsigned long' with 'uint64'
- Line 4344: consider replacing 'unsigned long' with 'uint64'
- Line 4366: do not use C-style cast to convert between unrelated types
- Line 4366: consider replacing 'unsigned long' with 'uint64'
- Line 4367: consider replacing 'unsigned long' with 'uint64'
- Line 4374: use nullptr
- Line 4376: do not use pointer arithmetic
- Line 4389: do not use C-style cast to convert between unrelated types
- Line 4389: consider replacing 'unsigned long' with 'uint64'
- Line 4390: consider replacing 'unsigned long' with 'uint64'
- Line 4412: do not use C-style cast to convert between unrelated types
- Line 4413: do not use C-style cast to convert between unrelated types
- Line 4417: consider replacing 'unsigned long long' with 'uint64'
- Line 4439: do not use C-style cast to convert between unrelated types
- Line 4440: do not use C-style cast to convert between unrelated types
- Line 4444: consider replacing 'long long' with 'int64'
- Line 4466: do not use C-style cast to convert between unrelated types
- Line 4467: do not use C-style cast to convert between unrelated types
- Line 4471: do not use array subscript when the index is not an integer constant expression
- Line 4478: use nullptr
- Line 4480: do not use pointer arithmetic
- Line 4493: do not use C-style cast to convert between unrelated types
- Line 4496: do not use C-style cast to convert between unrelated types
- Line 4496: consider replacing 'unsigned long' with 'uint64'
- Line 4499: do not use array subscript when the index is not an integer constant expression
- Line 4522: do not use C-style cast to convert between unrelated types
- Line 4523: do not use C-style cast to convert between unrelated types
- Line 4527: do not use array subscript when the index is not an integer constant expression
- Line 4534: use nullptr
- Line 4536: do not use pointer arithmetic
- Line 4549: consider replacing 'long' with 'int64'
- Line 4551: consider replacing 'long' with 'int64'
- Line 4609: do not use C-style cast to convert between unrelated types
- Line 4610: do not use pointer arithmetic
- Line 4610: do not use array subscript when the index is not an integer constant expression
- Line 4689: use auto when initializing with a cast to avoid duplicating the type name
- Line 4689: do not use C-style cast to convert between unrelated types
- Line 4690: do not use pointer arithmetic
- Line 4690: do not use array subscript when the index is not an integer constant expression
- Line 4714: declaration uses identifier '__tstreamer', which is a reserved identifier
- Line 4714: initialization of '__tstreamer' with thread_local storage duration may throw an exception that cannot be caught
- Line 4745: C-style casts are discouraged; use static_cast/const_cast/reinterpret_cast
- Line 4759: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4795: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4827: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4859: function-like macro 'TRACENATE' used; consider a 'constexpr' template function
- Line 63: Null pointer passed to 1st parameter expecting 'nonnull'
- Line 78: converting integer literal to bool, use bool literal instead
- Line 84: variable 'cp' is not initialized
- Line 86: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined
- Line 27: variable 'retval' is not initialized
- Line 28: variable 'outp' is not initialized
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 40: do not use array subscript when the index is not an integer constant expression
- Line 45: do not use array subscript when the index is not an integer constant expression
- Line 48: do not use array subscript when the index is not an integer constant expression
- Line 49: do not use array subscript when the index is not an integer constant expression
- Line 52: do not use pointer arithmetic
- Line 55: do not use array subscript when the index is not an integer constant expression
- Line 56: do not use array subscript when the index is not an integer constant expression
- Line 63: do not use reinterpret_cast
- Line 116: misleading indentation; statement is not part of the previous 'else'
- Line 116: converting integer literal to bool, use bool literal instead
- Line 131: misleading indentation; statement is not part of the previous 'else'
- Line 131: converting integer literal to bool, use bool literal instead
- Line 216: do not declare C-style arrays, use std::array<> instead
- Line 218: do not use pointer arithmetic
- Line 225: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 229: do not declare C-style arrays, use std::array<> instead
- Line 240: narrowing conversion from 'rep' (aka 'long') to signed type 'int' is implementation-defined
- Line 252: format string is not a string literal (potentially insecure)
- Line 263: function-like macro 'SL_FRC' used; consider a 'constexpr' template function
- Line 266: function-like macro 'LOG1_' used; consider a 'constexpr' template function
- Line 267: function-like macro 'LOG2_' used; consider a 'constexpr' template function
- Line 268: variadic macro 'COMMA_IF_PARENS' used; consider using a 'constexpr' variadic template function
- Line 270: variadic macro 'EXPAND_' used; consider using a 'constexpr' variadic template function
- Line 271: variadic macro 'CHOOSE_' used; consider using a 'constexpr' variadic template function
- Line 274: declaration uses identifier 'LOG__', which is a reserved identifier
- Line 276: variadic macro '_tlog_ARG3' used; consider using a 'constexpr' variadic template function
- Line 18: function-like macro 'USAGE' used; consider a 'constexpr' template function
- Line 21: inclusion of deprecated C++ header 'stdlib.h'; consider using 'cstdlib' instead
- Line 24: macro 'JUST_ERS' used to declare a constant; consider using a 'constexpr' constant
- Line 80: do not declare C-style arrays, use std::array<> instead
- Line 101: do not use pointer arithmetic
test/apps/performance.cxx
Errors
- Line 18: "printf" should not be used for output in DUNE DAQ software.
- Line 18: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
- Line 29: Using C-style cast. Use static_cast
(...) instead
Warnings
- Line 11: macro 'TRACE_REV' used to declare a constant; consider using a 'constexpr' constant
- Line 338: variadic macro 'TRACE_REV_FROM_REVb' used; consider using a 'constexpr' variadic template function
- Line 428: function-like macro 'TRACE_ATOMIC_LOAD' used; consider a 'constexpr' template function
- Line 640: declaration uses identifier 'TRACE_PRINT__', which is a reserved identifier
- Line 648: macro 'TRACE_PAGESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 1139: function-like macro 'TRACE_TID2NAME' used; consider a 'constexpr' template function
- Line 1144: function-like macro 'TRACE_entSiz' used; consider a 'constexpr' template function
- Line 1211: multiple declarations in a single statement reduces readability
- Line 1253: do not use pointer arithmetic
- Line 1277: multiple declarations in a single statement reduces readability
- Line 1277: variable 'extp' is not initialized
- Line 1277: variable 'file_or_hdrf' is not initialized
- Line 1278: multiple declarations in a single statement reduces readability
- Line 1279: multiple declarations in a single statement reduces readability
- Line 1280: do not declare C-style arrays, use std::array<> instead
- Line 1364: do not use pointer arithmetic
- Line 1374: do not use pointer arithmetic
- Line 1378: do not use pointer arithmetic
- Line 1444: variable 'spec' is not initialized
- Line 1469: variable 'ret' is not initialized
- Line 1470: variable 'spec' is not initialized
- Line 1473: C-style casts are discouraged; use static_cast
- Line 1475: use nullptr
- Line 1476: use nullptr
- Line 1480: variable 'xx' is not initialized
- Line 1498: do not use pointer arithmetic
- Line 1503: C-style casts are discouraged; use static_cast
- Line 1515: multiple declarations in a single statement reduces readability
- Line 1515: variable 'tnow_ms' is not initialized
- Line 1516: variable 'do_print' is not initialized
- Line 1525: C-style casts are discouraged; use static_cast
- Line 1612: do not declare C-style arrays, use std::array<> instead
- Line 1614: multiple declarations in a single statement reduces readability
- Line 1614: variable 'ncpylen' is not initialized
- Line 1614: variable 'segment_len' is not initialized
- Line 1615: multiple declarations in a single statement reduces readability
- Line 1638: do not use pointer arithmetic
- Line 1651: do not use pointer arithmetic
- Line 1720: variable 'ii' is not initialized
- Line 1721: do not use pointer arithmetic
- Line 1730: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 1757: do not use pointer arithmetic
- Line 1786: do not declare C-style arrays, use std::array<> instead
- Line 1789: variable 'default_unknown_sav' is not initialized
- Line 1790: variable 'endptr' is not initialized
- Line 1792: variable 'print_cntl' is not initialized
- Line 1794: variable 'size' is not initialized
- Line 1795: multiple declarations in a single statement reduces readability
- Line 1798: do not declare C-style arrays, use std::array<> instead
- Line 1802: variable 'useconds' is not initialized
- Line 1815: function-like macro 'TRACE_PRINTSIZE' used; consider a 'constexpr' template function
- Line 1817: macro replacement list should be enclosed in parentheses
- Line 1817: macro argument should be enclosed in parentheses
- Line 1819: do not use pointer arithmetic
- Line 1852: do not use pointer arithmetic
- Line 1858: do not use pointer arithmetic
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1951: C-style casts are discouraged; use static_cast
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1987: do not use array subscript when the index is not an integer constant expression
- Line 2057: use nullptr
- Line 2066: C-style casts are discouraged; use static_cast (if needed, the cast may be redundant)
- Line 2071: C-style casts are discouraged; use static_cast
- Line 2072: do not use pointer arithmetic
- Line 2077: do not use pointer arithmetic
- Line 2086: casting (double + 0.5) to integer leads to incorrect rounding; consider using lround (#include
) instead - Line 2094: do not use array subscript when the index is not an integer constant expression
- Line 2124: do not use array subscript when the index is not an integer constant expression
- Line 2209: declaration uses identifier '___THROW', which is a reserved identifier
- Line 2221: variable 'rp' is not initialized
- Line 2222: do not declare C-style arrays, use std::array<> instead
- Line 2235: do not use pointer arithmetic
- Line 2254: variable 'msg_p' is not initialized
- Line 2255: variable 'params_p' is not initialized
- Line 2256: variable 'argIdx' is not initialized
- Line 2258: variable 'myIdxCnt' is not initialized
- Line 2259: variable 'desired' is not initialized
- Line 2260: multiple declarations in a single statement reduces readability
- Line 2260: variable 'len' is not initialized
- Line 2261: variable 'out' is not initialized
- Line 2265: variable 'chkpid' is not initialized
- Line 2316: macro 'TRACE_TSC_EXPERIMENT' used to declare a constant; consider using a 'constexpr' constant
- Line 2392: consider replacing 'long' with 'int64'
- Line 2394: do not use pointer arithmetic
- Line 2405: do not use pointer arithmetic
- Line 2414: do not use pointer arithmetic
- Line 2442: do not use pointer arithmetic
- Line 2459: C-style casts are discouraged; use static_cast
- Line 2480: do not use pointer arithmetic
- Line 2529: do not use pointer arithmetic
- Line 2539: multiple declarations in a single statement reduces readability
- Line 2539: variable 'ii' is not initialized
- Line 2539: variable 'len' is not initialized
- Line 2540: do not use pointer arithmetic
- Line 2572: do not use pointer arithmetic
- Line 2592: do not use pointer arithmetic
- Line 2623: variable 'sts' is not initialized
- Line 2629: variable 'ign' is not initialized
- Line 2630: do not declare C-style arrays, use std::array<> instead
- Line 2632: variable 'len' is not initialized
- Line 2633: consider replacing 'unsigned long long' with 'uint64'
- Line 2633: variable 'S' is not initialized
- Line 2638: C-style casts are discouraged; use static_cast
- Line 2643: do not use array subscript when the index is not an integer constant expression
- Line 2651: C-style casts are discouraged; use static_cast
- Line 2653: do not use pointer arithmetic
- Line 2661: do not use pointer arithmetic
- Line 2667: do not use array subscript when the index is not an integer constant expression
- Line 2674: C-style casts are discouraged; use static_cast
- Line 2674: use nullptr
- Line 2676: variable 'cnt' is not initialized
- Line 2677: multiple declarations in a single statement reduces readability
- Line 2677: variable 'off_ms' is not initialized
- Line 2713: potential uncovered code path; add a default label
- Line 2764: do not declare C-style arrays, use std::array<> instead
- Line 2816: variable 'tnam' is not initialized
- Line 2826: C-style casts are discouraged; use static_cast
- Line 2828: C-style casts are discouraged; use static_cast
- Line 2831: do not use pointer arithmetic
- Line 2836: C-style casts are discouraged; use static_cast
- Line 2871: multiple declarations in a single statement reduces readability
- Line 2871: variable 'lvlm' is not initialized
- Line 2871: variable 'lvls' is not initialized
- Line 2871: variable 'lvlt' is not initialized
- Line 2872: variable 'ee' is not initialized
- Line 2873: variable 'op' is not initialized
- Line 2874: do not use pointer arithmetic
- Line 2876: do not use pointer arithmetic
- Line 2903: consider replacing 'long' with 'int64'
- Line 2912: consider replacing 'long' with 'int64'
- Line 2921: consider replacing 'long' with 'int64'
- Line 2948: variable 'lvlm' is not initialized
- Line 2948: variable 'lvls' is not initialized
- Line 2948: variable 'lvlt' is not initialized
- Line 2949: multiple declarations in a single statement reduces readability
- Line 2950: variable 'op' is not initialized
- Line 2951: do not use pointer arithmetic
- Line 2967: C-style casts are discouraged; use static_cast
- Line 2970: do not use pointer arithmetic
- Line 3036: C-style casts are discouraged; use static_cast
- Line 3037: C-style casts are discouraged; use static_cast
- Line 3039: C-style casts are discouraged; use static_cast
- Line 3051: do not declare C-style arrays, use std::array<> instead
- Line 3057: do not use array subscript when the index is not an integer constant expression
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3097: C-style casts are discouraged; use static_cast
- Line 3099: C-style casts are discouraged; use static_cast
- Line 3100: C-style casts are discouraged; use static_cast
- Line 3117: do not use C-style cast to convert between unrelated types
- Line 3117: do not use pointer arithmetic
- Line 3118: do not use pointer arithmetic
- Line 3146: variable 'ii' is not initialized
- Line 3148: do not declare C-style arrays, use std::array<> instead
- Line 3155: use nullptr
- Line 3155: use nullptr
- Line 3157: do not use pointer arithmetic
- Line 3164: use nullptr
- Line 3164: use nullptr
- Line 3165: use nullptr
- Line 3166: do not use C-style cast to cast away constness
- Line 3175: do not use pointer arithmetic
- Line 3180: use nullptr
- Line 3182: variable 'period' is not initialized
- Line 3188: do not use pointer arithmetic
- Line 3222: use nullptr
- Line 3223: variable 'rw_rwp' is not initialized
- Line 3224: variable 'off' is not initialized
- Line 3225: do not declare C-style arrays, use std::array<> instead
- Line 3272: C-style casts are discouraged; use static_cast
- Line 3283: do not use C-style cast to convert between unrelated types
- Line 3283: use nullptr
- Line 3284: do not use C-style cast to convert between unrelated types
- Line 3313: do not use C-style cast to convert between unrelated types
- Line 3313: use nullptr
- Line 3313: C-style casts are discouraged; use static_cast
- Line 3314: do not use C-style cast to convert between unrelated types
- Line 3325: use nullptr
- Line 3326: do not use C-style cast to convert between unrelated types
- Line 3341: do not use C-style cast to convert between unrelated types
- Line 3341: use nullptr
- Line 3342: do not use C-style cast to convert between unrelated types
- Line 3353: do not use C-style cast to convert between unrelated types
- Line 3353: do not use pointer arithmetic
- Line 3354: do not use pointer arithmetic
- Line 3378: multiple declarations in a single statement reduces readability
- Line 3378: variable 'argsmax_' is not initialized
- Line 3378: variable 'numents_' is not initialized
- Line 3378: variable 'namtblents_' is not initialized
- Line 3378: variable 'nammax_' is not initialized
- Line 3379: variable 'cp' is not initialized
- Line 3381: multiple declarations in a single statement reduces readability
- Line 3382: variable 'lvlM_endptr' is not initialized
- Line 3383: variable 'sts' is not initialized
- Line 3385: variable '_file' is not initialized
- Line 3393: use nullptr
- Line 3395: do not declare C-style arrays, use std::array<> instead
- Line 3399: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead
- Line 3403: use nullptr
- Line 3413: use nullptr
- Line 3415: variable 'scratch_name' is not initialized
- Line 3424: C-style casts are discouraged; use static_cast
- Line 3424: use nullptr
- Line 3429: C-style casts are discouraged; use static_cast
- Line 3429: use nullptr
- Line 3431: C-style casts are discouraged; use static_cast
- Line 3431: use nullptr
- Line 3433: C-style casts are discouraged; use static_cast
- Line 3433: use nullptr
- Line 3435: C-style casts are discouraged; use static_cast
- Line 3435: use nullptr
- Line 3442: multiple declarations in a single statement reduces readability
- Line 3449: do not use array subscript when the index is not an integer constant expression
- Line 3453: do not use pointer arithmetic
- Line 3464: C-style casts are discouraged; use static_cast
- Line 3466: C-style casts are discouraged; use static_cast
- Line 3470: C-style casts are discouraged; use static_cast
- Line 3475: multiple declarations in a single statement reduces readability
- Line 3513: do not use array subscript when the index is not an integer constant expression
- Line 3529: do not use pointer arithmetic
- Line 3536: C-style casts are discouraged; use static_cast
- Line 3543: C-style casts are discouraged; use static_cast
- Line 3544: use nullptr
- Line 3554: macro 'TRACE_DISABLED_ENTS' used to declare a constant; consider using a 'constexpr' constant
- Line 3565: use nullptr
- Line 3572: use nullptr
- Line 3576: C-style casts are discouraged; use static_cast
- Line 3601: variable 'endptr' is not initialized
- Line 3606: do not use pointer arithmetic
- Line 3616: do not use pointer arithmetic
- Line 3670: variable 'ii' is not initialized
- Line 3671: variable 'TrcId' is not initialized
- Line 3673: do not use pointer arithmetic
- Line 3696: variable 'idx' is not initialized
- Line 3697: variable 'off' is not initialized
- Line 3700: either cast from 'uint32_t' (aka 'unsigned int') to 'off_t' (aka 'long') is ineffective, or there is loss of precision before the conversion
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use pointer arithmetic
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3708: do not use pointer arithmetic
- Line 3807: function-like macro 'TRACE_STREAMER_SCOPED' used; consider a 'constexpr' template function
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3868: macro argument should be enclosed in parentheses
- Line 3884: consider replacing 'unsigned long long' with 'uint64'
- Line 3940: converting integer literal to bool, use bool literal instead
- Line 3962: declaration uses identifier '_TRACE_M_flags', which is a reserved identifier
- Line 3970: do not use array subscript when the index is not an integer constant expression
- Line 4002: C-style casts are discouraged; use static_cast
- Line 4011: use nullptr
- Line 4012: use nullptr
- Line 4022: do not use array subscript when the index is not an integer constant expression
- Line 4031: do not use array subscript when the index is not an integer constant expression
- Line 4041: macro argument should be enclosed in parentheses
- Line 4047: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4219: consider replacing 'long' with 'int64'
- Line 4220: consider replacing 'long' with 'int64'
- Line 4246: do not use C-style cast to convert between unrelated types
- Line 4246: consider replacing 'unsigned long' with 'uint64'
- Line 4247: consider replacing 'unsigned long' with 'uint64'
- Line 4251: do not use array subscript when the index is not an integer constant expression
- Line 4273: consider replacing 'long' with 'int64'
- Line 4273: consider replacing 'long' with 'int64'
- Line 4274: consider replacing 'long' with 'int64'
- Line 4282: use nullptr
- Line 4284: do not use pointer arithmetic
- Line 4297: consider replacing 'long' with 'int64'
- Line 4298: consider replacing 'long' with 'int64'
- Line 4320: do not use C-style cast to convert between unrelated types
- Line 4320: consider replacing 'long' with 'int64'
- Line 4321: consider replacing 'long' with 'int64'
- Line 4343: do not use C-style cast to convert between unrelated types
- Line 4343: consider replacing 'unsigned long' with 'uint64'
- Line 4344: consider replacing 'unsigned long' with 'uint64'
- Line 4366: do not use C-style cast to convert between unrelated types
- Line 4366: consider replacing 'unsigned long' with 'uint64'
- Line 4367: consider replacing 'unsigned long' with 'uint64'
- Line 4374: use nullptr
- Line 4376: do not use pointer arithmetic
- Line 4389: do not use C-style cast to convert between unrelated types
- Line 4389: consider replacing 'unsigned long' with 'uint64'
- Line 4390: consider replacing 'unsigned long' with 'uint64'
- Line 4412: do not use C-style cast to convert between unrelated types
- Line 4413: do not use C-style cast to convert between unrelated types
- Line 4417: consider replacing 'unsigned long long' with 'uint64'
- Line 4439: do not use C-style cast to convert between unrelated types
- Line 4440: do not use C-style cast to convert between unrelated types
- Line 4444: consider replacing 'long long' with 'int64'
- Line 4466: do not use C-style cast to convert between unrelated types
- Line 4467: do not use C-style cast to convert between unrelated types
- Line 4471: do not use array subscript when the index is not an integer constant expression
- Line 4478: use nullptr
- Line 4480: do not use pointer arithmetic
- Line 4493: do not use C-style cast to convert between unrelated types
- Line 4496: do not use C-style cast to convert between unrelated types
- Line 4496: consider replacing 'unsigned long' with 'uint64'
- Line 4499: do not use array subscript when the index is not an integer constant expression
- Line 4522: do not use C-style cast to convert between unrelated types
- Line 4523: do not use C-style cast to convert between unrelated types
- Line 4527: do not use array subscript when the index is not an integer constant expression
- Line 4534: use nullptr
- Line 4536: do not use pointer arithmetic
- Line 4549: consider replacing 'long' with 'int64'
- Line 4551: consider replacing 'long' with 'int64'
- Line 4609: do not use C-style cast to convert between unrelated types
- Line 4610: do not use pointer arithmetic
- Line 4610: do not use array subscript when the index is not an integer constant expression
- Line 4689: use auto when initializing with a cast to avoid duplicating the type name
- Line 4689: do not use C-style cast to convert between unrelated types
- Line 4690: do not use pointer arithmetic
- Line 4690: do not use array subscript when the index is not an integer constant expression
- Line 4714: declaration uses identifier '__tstreamer', which is a reserved identifier
- Line 4714: initialization of '__tstreamer' with thread_local storage duration may throw an exception that cannot be caught
- Line 4745: C-style casts are discouraged; use static_cast/const_cast/reinterpret_cast
- Line 4759: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4795: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4827: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4859: function-like macro 'TRACENATE' used; consider a 'constexpr' template function
- Line 63: Null pointer passed to 1st parameter expecting 'nonnull'
- Line 78: converting integer literal to bool, use bool literal instead
- Line 84: variable 'cp' is not initialized
- Line 86: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined
- Line 27: variable 'retval' is not initialized
- Line 28: variable 'outp' is not initialized
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 40: do not use array subscript when the index is not an integer constant expression
- Line 45: do not use array subscript when the index is not an integer constant expression
- Line 48: do not use array subscript when the index is not an integer constant expression
- Line 49: do not use array subscript when the index is not an integer constant expression
- Line 52: do not use pointer arithmetic
- Line 55: do not use array subscript when the index is not an integer constant expression
- Line 56: do not use array subscript when the index is not an integer constant expression
- Line 63: do not use reinterpret_cast
- Line 116: misleading indentation; statement is not part of the previous 'else'
- Line 116: converting integer literal to bool, use bool literal instead
- Line 131: misleading indentation; statement is not part of the previous 'else'
- Line 131: converting integer literal to bool, use bool literal instead
- Line 216: do not declare C-style arrays, use std::array<> instead
- Line 218: do not use pointer arithmetic
- Line 225: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 229: do not declare C-style arrays, use std::array<> instead
- Line 240: narrowing conversion from 'rep' (aka 'long') to signed type 'int' is implementation-defined
- Line 252: format string is not a string literal (potentially insecure)
- Line 263: function-like macro 'SL_FRC' used; consider a 'constexpr' template function
- Line 266: function-like macro 'LOG1_' used; consider a 'constexpr' template function
- Line 267: function-like macro 'LOG2_' used; consider a 'constexpr' template function
- Line 268: variadic macro 'COMMA_IF_PARENS' used; consider using a 'constexpr' variadic template function
- Line 270: variadic macro 'EXPAND_' used; consider using a 'constexpr' variadic template function
- Line 271: variadic macro 'CHOOSE_' used; consider using a 'constexpr' variadic template function
- Line 274: declaration uses identifier 'LOG__', which is a reserved identifier
- Line 276: variadic macro '_tlog_ARG3' used; consider using a 'constexpr' variadic template function
- Line 18: function-like macro 'USAGE' used; consider a 'constexpr' template function
- Line 63: do not declare C-style arrays, use std::array<> instead
- Line 82: do not use pointer arithmetic
test/apps/six_streams.cxx
Errors
- Line 16: "printf" should not be used for output in DUNE DAQ software.
- Line 16: #define appears to be used. Macros should generally be avoided if there's an alternative to them.
Warnings
- Line 11: macro 'TRACE_REV' used to declare a constant; consider using a 'constexpr' constant
- Line 338: variadic macro 'TRACE_REV_FROM_REVb' used; consider using a 'constexpr' variadic template function
- Line 428: function-like macro 'TRACE_ATOMIC_LOAD' used; consider a 'constexpr' template function
- Line 640: declaration uses identifier 'TRACE_PRINT__', which is a reserved identifier
- Line 648: macro 'TRACE_PAGESIZE' used to declare a constant; consider using a 'constexpr' constant
- Line 1139: function-like macro 'TRACE_TID2NAME' used; consider a 'constexpr' template function
- Line 1144: function-like macro 'TRACE_entSiz' used; consider a 'constexpr' template function
- Line 1211: multiple declarations in a single statement reduces readability
- Line 1253: do not use pointer arithmetic
- Line 1277: multiple declarations in a single statement reduces readability
- Line 1277: variable 'extp' is not initialized
- Line 1277: variable 'file_or_hdrf' is not initialized
- Line 1278: multiple declarations in a single statement reduces readability
- Line 1279: multiple declarations in a single statement reduces readability
- Line 1280: do not declare C-style arrays, use std::array<> instead
- Line 1364: do not use pointer arithmetic
- Line 1374: do not use pointer arithmetic
- Line 1378: do not use pointer arithmetic
- Line 1444: variable 'spec' is not initialized
- Line 1469: variable 'ret' is not initialized
- Line 1470: variable 'spec' is not initialized
- Line 1473: C-style casts are discouraged; use static_cast
- Line 1475: use nullptr
- Line 1476: use nullptr
- Line 1480: variable 'xx' is not initialized
- Line 1498: do not use pointer arithmetic
- Line 1503: C-style casts are discouraged; use static_cast
- Line 1515: multiple declarations in a single statement reduces readability
- Line 1515: variable 'tnow_ms' is not initialized
- Line 1516: variable 'do_print' is not initialized
- Line 1525: C-style casts are discouraged; use static_cast
- Line 1612: do not declare C-style arrays, use std::array<> instead
- Line 1614: multiple declarations in a single statement reduces readability
- Line 1614: variable 'ncpylen' is not initialized
- Line 1614: variable 'segment_len' is not initialized
- Line 1615: multiple declarations in a single statement reduces readability
- Line 1638: do not use pointer arithmetic
- Line 1651: do not use pointer arithmetic
- Line 1720: variable 'ii' is not initialized
- Line 1721: do not use pointer arithmetic
- Line 1730: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 1757: do not use pointer arithmetic
- Line 1786: do not declare C-style arrays, use std::array<> instead
- Line 1789: variable 'default_unknown_sav' is not initialized
- Line 1790: variable 'endptr' is not initialized
- Line 1792: variable 'print_cntl' is not initialized
- Line 1794: variable 'size' is not initialized
- Line 1795: multiple declarations in a single statement reduces readability
- Line 1798: do not declare C-style arrays, use std::array<> instead
- Line 1802: variable 'useconds' is not initialized
- Line 1815: function-like macro 'TRACE_PRINTSIZE' used; consider a 'constexpr' template function
- Line 1817: macro replacement list should be enclosed in parentheses
- Line 1817: macro argument should be enclosed in parentheses
- Line 1819: do not use pointer arithmetic
- Line 1852: do not use pointer arithmetic
- Line 1858: do not use pointer arithmetic
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1951: C-style casts are discouraged; use static_cast
- Line 1951: consider replacing 'unsigned long' with 'uint64'
- Line 1987: do not use array subscript when the index is not an integer constant expression
- Line 2057: use nullptr
- Line 2066: C-style casts are discouraged; use static_cast (if needed, the cast may be redundant)
- Line 2071: C-style casts are discouraged; use static_cast
- Line 2072: do not use pointer arithmetic
- Line 2077: do not use pointer arithmetic
- Line 2086: casting (double + 0.5) to integer leads to incorrect rounding; consider using lround (#include
) instead - Line 2094: do not use array subscript when the index is not an integer constant expression
- Line 2124: do not use array subscript when the index is not an integer constant expression
- Line 2209: declaration uses identifier '___THROW', which is a reserved identifier
- Line 2221: variable 'rp' is not initialized
- Line 2222: do not declare C-style arrays, use std::array<> instead
- Line 2235: do not use pointer arithmetic
- Line 2254: variable 'msg_p' is not initialized
- Line 2255: variable 'params_p' is not initialized
- Line 2256: variable 'argIdx' is not initialized
- Line 2258: variable 'myIdxCnt' is not initialized
- Line 2259: variable 'desired' is not initialized
- Line 2260: multiple declarations in a single statement reduces readability
- Line 2260: variable 'len' is not initialized
- Line 2261: variable 'out' is not initialized
- Line 2265: variable 'chkpid' is not initialized
- Line 2316: macro 'TRACE_TSC_EXPERIMENT' used to declare a constant; consider using a 'constexpr' constant
- Line 2392: consider replacing 'long' with 'int64'
- Line 2394: do not use pointer arithmetic
- Line 2405: do not use pointer arithmetic
- Line 2414: do not use pointer arithmetic
- Line 2442: do not use pointer arithmetic
- Line 2459: C-style casts are discouraged; use static_cast
- Line 2480: do not use pointer arithmetic
- Line 2529: do not use pointer arithmetic
- Line 2539: multiple declarations in a single statement reduces readability
- Line 2539: variable 'ii' is not initialized
- Line 2539: variable 'len' is not initialized
- Line 2540: do not use pointer arithmetic
- Line 2572: do not use pointer arithmetic
- Line 2592: do not use pointer arithmetic
- Line 2623: variable 'sts' is not initialized
- Line 2629: variable 'ign' is not initialized
- Line 2630: do not declare C-style arrays, use std::array<> instead
- Line 2632: variable 'len' is not initialized
- Line 2633: consider replacing 'unsigned long long' with 'uint64'
- Line 2633: variable 'S' is not initialized
- Line 2638: C-style casts are discouraged; use static_cast
- Line 2643: do not use array subscript when the index is not an integer constant expression
- Line 2651: C-style casts are discouraged; use static_cast
- Line 2653: do not use pointer arithmetic
- Line 2661: do not use pointer arithmetic
- Line 2667: do not use array subscript when the index is not an integer constant expression
- Line 2674: C-style casts are discouraged; use static_cast
- Line 2674: use nullptr
- Line 2676: variable 'cnt' is not initialized
- Line 2677: multiple declarations in a single statement reduces readability
- Line 2677: variable 'off_ms' is not initialized
- Line 2713: potential uncovered code path; add a default label
- Line 2764: do not declare C-style arrays, use std::array<> instead
- Line 2816: variable 'tnam' is not initialized
- Line 2826: C-style casts are discouraged; use static_cast
- Line 2828: C-style casts are discouraged; use static_cast
- Line 2831: do not use pointer arithmetic
- Line 2836: C-style casts are discouraged; use static_cast
- Line 2871: multiple declarations in a single statement reduces readability
- Line 2871: variable 'lvlm' is not initialized
- Line 2871: variable 'lvls' is not initialized
- Line 2871: variable 'lvlt' is not initialized
- Line 2872: variable 'ee' is not initialized
- Line 2873: variable 'op' is not initialized
- Line 2874: do not use pointer arithmetic
- Line 2876: do not use pointer arithmetic
- Line 2903: consider replacing 'long' with 'int64'
- Line 2912: consider replacing 'long' with 'int64'
- Line 2921: consider replacing 'long' with 'int64'
- Line 2948: variable 'lvlm' is not initialized
- Line 2948: variable 'lvls' is not initialized
- Line 2948: variable 'lvlt' is not initialized
- Line 2949: multiple declarations in a single statement reduces readability
- Line 2950: variable 'op' is not initialized
- Line 2951: do not use pointer arithmetic
- Line 2967: C-style casts are discouraged; use static_cast
- Line 2970: do not use pointer arithmetic
- Line 3036: C-style casts are discouraged; use static_cast
- Line 3037: C-style casts are discouraged; use static_cast
- Line 3039: C-style casts are discouraged; use static_cast
- Line 3051: do not declare C-style arrays, use std::array<> instead
- Line 3057: do not use array subscript when the index is not an integer constant expression
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3095: C-style casts are discouraged; use static_cast
- Line 3097: C-style casts are discouraged; use static_cast
- Line 3099: C-style casts are discouraged; use static_cast
- Line 3100: C-style casts are discouraged; use static_cast
- Line 3117: do not use C-style cast to convert between unrelated types
- Line 3117: do not use pointer arithmetic
- Line 3118: do not use pointer arithmetic
- Line 3146: variable 'ii' is not initialized
- Line 3148: do not declare C-style arrays, use std::array<> instead
- Line 3155: use nullptr
- Line 3155: use nullptr
- Line 3157: do not use pointer arithmetic
- Line 3164: use nullptr
- Line 3164: use nullptr
- Line 3165: use nullptr
- Line 3166: do not use C-style cast to cast away constness
- Line 3175: do not use pointer arithmetic
- Line 3180: use nullptr
- Line 3182: variable 'period' is not initialized
- Line 3188: do not use pointer arithmetic
- Line 3222: use nullptr
- Line 3223: variable 'rw_rwp' is not initialized
- Line 3224: variable 'off' is not initialized
- Line 3225: do not declare C-style arrays, use std::array<> instead
- Line 3272: C-style casts are discouraged; use static_cast
- Line 3283: do not use C-style cast to convert between unrelated types
- Line 3283: use nullptr
- Line 3284: do not use C-style cast to convert between unrelated types
- Line 3313: do not use C-style cast to convert between unrelated types
- Line 3313: use nullptr
- Line 3313: C-style casts are discouraged; use static_cast
- Line 3314: do not use C-style cast to convert between unrelated types
- Line 3325: use nullptr
- Line 3326: do not use C-style cast to convert between unrelated types
- Line 3341: do not use C-style cast to convert between unrelated types
- Line 3341: use nullptr
- Line 3342: do not use C-style cast to convert between unrelated types
- Line 3353: do not use C-style cast to convert between unrelated types
- Line 3353: do not use pointer arithmetic
- Line 3354: do not use pointer arithmetic
- Line 3378: multiple declarations in a single statement reduces readability
- Line 3378: variable 'argsmax_' is not initialized
- Line 3378: variable 'numents_' is not initialized
- Line 3378: variable 'namtblents_' is not initialized
- Line 3378: variable 'nammax_' is not initialized
- Line 3379: variable 'cp' is not initialized
- Line 3381: multiple declarations in a single statement reduces readability
- Line 3382: variable 'lvlM_endptr' is not initialized
- Line 3383: variable 'sts' is not initialized
- Line 3385: variable '_file' is not initialized
- Line 3393: use nullptr
- Line 3395: do not declare C-style arrays, use std::array<> instead
- Line 3399: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead
- Line 3403: use nullptr
- Line 3413: use nullptr
- Line 3415: variable 'scratch_name' is not initialized
- Line 3424: C-style casts are discouraged; use static_cast
- Line 3424: use nullptr
- Line 3429: C-style casts are discouraged; use static_cast
- Line 3429: use nullptr
- Line 3431: C-style casts are discouraged; use static_cast
- Line 3431: use nullptr
- Line 3433: C-style casts are discouraged; use static_cast
- Line 3433: use nullptr
- Line 3435: C-style casts are discouraged; use static_cast
- Line 3435: use nullptr
- Line 3442: multiple declarations in a single statement reduces readability
- Line 3449: do not use array subscript when the index is not an integer constant expression
- Line 3453: do not use pointer arithmetic
- Line 3464: C-style casts are discouraged; use static_cast
- Line 3466: C-style casts are discouraged; use static_cast
- Line 3470: C-style casts are discouraged; use static_cast
- Line 3475: multiple declarations in a single statement reduces readability
- Line 3513: do not use array subscript when the index is not an integer constant expression
- Line 3529: do not use pointer arithmetic
- Line 3536: C-style casts are discouraged; use static_cast
- Line 3543: C-style casts are discouraged; use static_cast
- Line 3544: use nullptr
- Line 3554: macro 'TRACE_DISABLED_ENTS' used to declare a constant; consider using a 'constexpr' constant
- Line 3565: use nullptr
- Line 3572: use nullptr
- Line 3576: C-style casts are discouraged; use static_cast
- Line 3601: variable 'endptr' is not initialized
- Line 3606: do not use pointer arithmetic
- Line 3616: do not use pointer arithmetic
- Line 3670: variable 'ii' is not initialized
- Line 3671: variable 'TrcId' is not initialized
- Line 3673: do not use pointer arithmetic
- Line 3696: variable 'idx' is not initialized
- Line 3697: variable 'off' is not initialized
- Line 3700: either cast from 'uint32_t' (aka 'unsigned int') to 'off_t' (aka 'long') is ineffective, or there is loss of precision before the conversion
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use C-style cast to convert between unrelated types
- Line 3701: do not use pointer arithmetic
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3707: C-style casts are discouraged; use static_cast
- Line 3708: do not use pointer arithmetic
- Line 3807: function-like macro 'TRACE_STREAMER_SCOPED' used; consider a 'constexpr' template function
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3865: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3866: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3867: macro argument should be enclosed in parentheses
- Line 3868: macro argument should be enclosed in parentheses
- Line 3884: consider replacing 'unsigned long long' with 'uint64'
- Line 3940: converting integer literal to bool, use bool literal instead
- Line 3962: declaration uses identifier '_TRACE_M_flags', which is a reserved identifier
- Line 3970: do not use array subscript when the index is not an integer constant expression
- Line 4002: C-style casts are discouraged; use static_cast
- Line 4011: use nullptr
- Line 4012: use nullptr
- Line 4022: do not use array subscript when the index is not an integer constant expression
- Line 4031: do not use array subscript when the index is not an integer constant expression
- Line 4041: macro argument should be enclosed in parentheses
- Line 4047: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4219: consider replacing 'long' with 'int64'
- Line 4220: consider replacing 'long' with 'int64'
- Line 4246: do not use C-style cast to convert between unrelated types
- Line 4246: consider replacing 'unsigned long' with 'uint64'
- Line 4247: consider replacing 'unsigned long' with 'uint64'
- Line 4251: do not use array subscript when the index is not an integer constant expression
- Line 4273: consider replacing 'long' with 'int64'
- Line 4273: consider replacing 'long' with 'int64'
- Line 4274: consider replacing 'long' with 'int64'
- Line 4282: use nullptr
- Line 4284: do not use pointer arithmetic
- Line 4297: consider replacing 'long' with 'int64'
- Line 4298: consider replacing 'long' with 'int64'
- Line 4320: do not use C-style cast to convert between unrelated types
- Line 4320: consider replacing 'long' with 'int64'
- Line 4321: consider replacing 'long' with 'int64'
- Line 4343: do not use C-style cast to convert between unrelated types
- Line 4343: consider replacing 'unsigned long' with 'uint64'
- Line 4344: consider replacing 'unsigned long' with 'uint64'
- Line 4366: do not use C-style cast to convert between unrelated types
- Line 4366: consider replacing 'unsigned long' with 'uint64'
- Line 4367: consider replacing 'unsigned long' with 'uint64'
- Line 4374: use nullptr
- Line 4376: do not use pointer arithmetic
- Line 4389: do not use C-style cast to convert between unrelated types
- Line 4389: consider replacing 'unsigned long' with 'uint64'
- Line 4390: consider replacing 'unsigned long' with 'uint64'
- Line 4412: do not use C-style cast to convert between unrelated types
- Line 4413: do not use C-style cast to convert between unrelated types
- Line 4417: consider replacing 'unsigned long long' with 'uint64'
- Line 4439: do not use C-style cast to convert between unrelated types
- Line 4440: do not use C-style cast to convert between unrelated types
- Line 4444: consider replacing 'long long' with 'int64'
- Line 4466: do not use C-style cast to convert between unrelated types
- Line 4467: do not use C-style cast to convert between unrelated types
- Line 4471: do not use array subscript when the index is not an integer constant expression
- Line 4478: use nullptr
- Line 4480: do not use pointer arithmetic
- Line 4493: do not use C-style cast to convert between unrelated types
- Line 4496: do not use C-style cast to convert between unrelated types
- Line 4496: consider replacing 'unsigned long' with 'uint64'
- Line 4499: do not use array subscript when the index is not an integer constant expression
- Line 4522: do not use C-style cast to convert between unrelated types
- Line 4523: do not use C-style cast to convert between unrelated types
- Line 4527: do not use array subscript when the index is not an integer constant expression
- Line 4534: use nullptr
- Line 4536: do not use pointer arithmetic
- Line 4549: consider replacing 'long' with 'int64'
- Line 4551: consider replacing 'long' with 'int64'
- Line 4609: do not use C-style cast to convert between unrelated types
- Line 4610: do not use pointer arithmetic
- Line 4610: do not use array subscript when the index is not an integer constant expression
- Line 4689: use auto when initializing with a cast to avoid duplicating the type name
- Line 4689: do not use C-style cast to convert between unrelated types
- Line 4690: do not use pointer arithmetic
- Line 4690: do not use array subscript when the index is not an integer constant expression
- Line 4714: declaration uses identifier '__tstreamer', which is a reserved identifier
- Line 4714: initialization of '__tstreamer' with thread_local storage duration may throw an exception that cannot be caught
- Line 4745: C-style casts are discouraged; use static_cast/const_cast/reinterpret_cast
- Line 4759: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4795: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4827: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- Line 4859: function-like macro 'TRACENATE' used; consider a 'constexpr' template function
- Line 63: Null pointer passed to 1st parameter expecting 'nonnull'
- Line 78: converting integer literal to bool, use bool literal instead
- Line 84: variable 'cp' is not initialized
- Line 86: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined
- Line 27: variable 'retval' is not initialized
- Line 28: variable 'outp' is not initialized
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 40: do not use array subscript when the index is not an integer constant expression
- Line 45: do not use array subscript when the index is not an integer constant expression
- Line 48: do not use array subscript when the index is not an integer constant expression
- Line 49: do not use array subscript when the index is not an integer constant expression
- Line 52: do not use pointer arithmetic
- Line 55: do not use array subscript when the index is not an integer constant expression
- Line 56: do not use array subscript when the index is not an integer constant expression
- Line 63: do not use reinterpret_cast
- Line 116: misleading indentation; statement is not part of the previous 'else'
- Line 116: converting integer literal to bool, use bool literal instead
- Line 131: misleading indentation; statement is not part of the previous 'else'
- Line 131: converting integer literal to bool, use bool literal instead
- Line 216: do not declare C-style arrays, use std::array<> instead
- Line 218: do not use pointer arithmetic
- Line 225: narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int' is implementation-defined
- Line 229: do not declare C-style arrays, use std::array<> instead
- Line 240: narrowing conversion from 'rep' (aka 'long') to signed type 'int' is implementation-defined
- Line 252: format string is not a string literal (potentially insecure)
- Line 263: function-like macro 'SL_FRC' used; consider a 'constexpr' template function
- Line 266: function-like macro 'LOG1_' used; consider a 'constexpr' template function
- Line 267: function-like macro 'LOG2_' used; consider a 'constexpr' template function
- Line 268: variadic macro 'COMMA_IF_PARENS' used; consider using a 'constexpr' variadic template function
- Line 270: variadic macro 'EXPAND_' used; consider using a 'constexpr' variadic template function
- Line 271: variadic macro 'CHOOSE_' used; consider using a 'constexpr' variadic template function
- Line 274: declaration uses identifier 'LOG__', which is a reserved identifier
- Line 276: variadic macro '_tlog_ARG3' used; consider using a 'constexpr' variadic template function
- Line 16: function-like macro 'USAGE' used; consider a 'constexpr' template function
- Line 27: multiple declarations in a single statement reduces readability
- Line 29: do not declare C-style arrays, use std::array<> instead
- Line 45: do not use pointer arithmetic