Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


A bunch of similar warnings here:
<error file="basic/source/sbx/sbxbyte.cxx" line="215"
id="uselessAssignmentPtrArg" severity="style" msg="Assignment of function
parameter has no effect outside the function."/>
<error file="basic/source/sbx/sbxchar.cxx" line="200"
id="uselessAssignmentPtrArg" severity="style" msg="Assignment of function
parameter has no effect outside the function."/>
<error file="basic/source/sbx/sbxcurr.cxx" line="372"
id="uselessAssignmentPtrArg" severity="style" msg="Assignment of function
parameter has no effect outside the function."/>
<error file="basic/source/sbx/sbxdec.cxx" line="517"
id="uselessAssignmentPtrArg" severity="style" msg="Assignment of function
parameter has no effect outside the function."/>
<error file="basic/source/sbx/sbxint.cxx" line="213"
id="uselessAssignmentPtrArg" severity="style" msg="Assignment of function
parameter has no effect outside the function."/>
<error file="basic/source/sbx/sbxint.cxx" line="493"
id="uselessAssignmentPtrArg" severity="style" msg="Assignment of function
parameter has no effect outside the function."/>
<error file="basic/source/sbx/sbxint.cxx" line="768"
id="uselessAssignmentPtrArg" severity="style" msg="Assignment of function
parameter has no effect outside the function."/>
<error file="basic/source/sbx/sbxlng.cxx" line="173"
id="uselessAssignmentPtrArg" severity="style" msg="Assignment of function
parameter has no effect outside the function."/>
<error file="basic/source/sbx/sbxsng.cxx" line="163"
id="uselessAssignmentPtrArg" severity="style" msg="Assignment of function
parameter has no effect outside the function."/>
<error file="basic/source/sbx/sbxuint.cxx" line="207"
id="uselessAssignmentPtrArg" severity="style" msg="Assignment of function
parameter has no effect outside the function."/>
<error file="basic/source/sbx/sbxulng.cxx" line="174"
id="uselessAssignmentPtrArg" severity="style" msg="Assignment of function
parameter has no effect outside the function."/>
These always have part like this:
    491         ref:
    492             aTmp.eType = SbxDataType( p->eType & 0x0FFF );
    493             p = &aTmp; goto start;
whereas the function is like this:
sal_Int64 ImpGetInt64( const SbxValues* p )


<error file="rsc/source/rscpp/cpp5.c" line="643"
id="uselessAssignmentPtrArg" severity="style" msg="Assignment of function
parameter has no effect outside the function."/>
This one is a bit different, we have this:
c = cget();
whereas the function is declared like this:
FILE_LOCAL int evalnum(int c)

Julien



--
View this message in context: 
http://nabble.documentfoundation.org/Cppcheck-uselessAssignmentPtrArg-in-wrapper-cxx-sdext-module-tp4055514p4055516.html
Sent from the Dev mailing list archive at Nabble.com.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.