On a Thursday in 2020, Ján Tomko wrote:
On a Thursday in 2020, Peter Krempa wrote:
>Compilers are not very good at detecting this problem. Fixed by manual
>inspection of compilation warnings after replacing 'VIR_FREE' with an
>empty macro.
>
Also, I see you're building without vz_sdk, I found two more occurrences
False alarm, it did not inspect the macro where it was used correctly.
Jano
with the following coccinelle spatch:
@@
identifier i;
type T;
constant C;
@@
-T i = C;
<+... when != i
-VIR_FREE(i);
...+>
Jano