The code is valid. It’s using macros that cppcheck isn’t understanding and reports below error (error) : [cppcheckError] Analysis failed. If the code is valid then please report this failure. [cppCheck]
PAS.cpp // Wrapper around operation_unref for boolean returning functions. define x_unref_bool(opstate) \ if (P_INIT_UNSUCCESSFUL == & { \ operation_unref(opstate); \ return PULSE_INIT_SUCCESSFUL; \ }()) \ { \ return false; \ }
-- bool PAS::SetState(bool bState) { if …) { -- -- pa_operation op = DELAYLOAD(…); x_unref_bool (op)*; ----------> cppCheck reports error for this macro. } else if (..) { .. } else { -- }
Hi Daniel, CHR, Greetings! Could you help with this issue. Is there a fix for this? any ETA when this would be resolved in upcoming releases.
Maybe you could post a complete standalone example that reproduces the problem first? ...and --is not helpful. Also better use code tags (Ctrl-Alt-C).
...
--
Log in to post a comment.
The code is valid. It’s using macros that cppcheck isn’t understanding and reports below error
(error) : [cppcheckError] Analysis failed. If the code is valid then please report this failure. [cppCheck]
PAS.cpp
// Wrapper around operation_unref for boolean returning functions.
define x_unref_bool(opstate) \
if (P_INIT_UNSUCCESSFUL == & { \
operation_unref(opstate); \
return PULSE_INIT_SUCCESSFUL; \
}()) \
{ \
return false; \
}
--
bool PAS::SetState(bool bState)
{
if …)
{
--
--
pa_operation op = DELAYLOAD(…);
x_unref_bool (op)*; ----------> cppCheck reports error for this macro.
}
else if (..)
{
..
}
else
{
--
}
Hi Daniel, CHR,
Greetings!
Could you help with this issue. Is there a fix for this? any ETA when this would be resolved in upcoming releases.
Maybe you could post a complete standalone example that reproduces the problem first?
...
and--
is not helpful. Also better use code tags (Ctrl-Alt-C).