26 lines
2.0 KiB
XML
26 lines
2.0 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<results version="2">
|
||
|
<cppcheck version="1.47"/>
|
||
|
<errors>
|
||
|
<error id="unreadVariable" severity="style" msg="Variable &#039;a&#039; is assigned a value that is never used" verbose="Variable &#039;a&#039; is assigned a value that is never used">
|
||
|
<location file="test.cxx" line="11"/>
|
||
|
</error>
|
||
|
<error id="unreadVariable" severity="style" msg="Variable &#039;b&#039; is assigned a value that is never used" verbose="Variable &#039;b&#039; is assigned a value that is never used">
|
||
|
<location file="test.cxx" line="28"/>
|
||
|
</error>
|
||
|
<error id="memleak" severity="error" msg="Memory leak: b" verbose="Memory leak: b">
|
||
|
<location file="test.cxx" line="31"/>
|
||
|
</error>
|
||
|
<error id="mismatchAllocDealloc" severity="error" msg="Mismatching allocation and deallocation: k" verbose="Mismatching allocation and deallocation: k">
|
||
|
<location file="test.cxx" line="32"/>
|
||
|
<location file="test.cxx" line="16"/>
|
||
|
</error>
|
||
|
<error id="obsoleteFunctionsgets" severity="style" msg="Found obsolete function &#039;gets&#039;. It is recommended to use the function &#039;fgets&#039; instead" verbose="Found obsolete function &#039;gets&#039;. With gets you&#039;ll get buffer overruns if the input data too big for the buffer. It is recommended to use the function &#039;fgets&#039; instead.">
|
||
|
<location file="test.cxx" line="31"/>
|
||
|
</error>
|
||
|
<error id="postfixOperator" severity="performance" msg="Prefer prefix ++/-- operators for non-primitive types." verbose="Prefix ++/-- operators should be preferred for non-primitive types. Pre-increment/decrement can be more efficient than post-increment/decrement. Post-increment/decrement usually involves keeping a copy of the previous value around and adds a little extra code.">
|
||
|
<location file="test.cxx" line="22"/>
|
||
|
</error>
|
||
|
</errors>
|
||
|
</results>
|