[gdal-dev] PVS-Studio "missing move constructor" warnings ?

Even Rouault even.rouault at spatialys.com
Sun Oct 16 05:26:57 PDT 2022


Andrew,

remedied with https://github.com/OSGeo/gdal/pull/6534

Even

Le 16/10/2022 à 10:26, Andrew C Aitchison a écrit :
>
> When I run the PVS-Studio static analyzer https://pvs-studio.com/
> on my driver plugin I get two warnings on cpl code:
>
> PVS-Studio Analysis Results
>
>    Date: Sun Oct 16 09:12:51 2022
>    PVS-Studio Version: 7.21.64848.262
>    Command Line: plog-converter -a GA\:1,2 -t fullhtml -o pvs.dir 
> qctdataset.pvs.log
>    qctvector.pvs.log qct.pvs.log qed.pvs.log
>    Total Warnings (GA): 2
>
>    Group Location Level Code Message
>    General Analysis cpl_string.h:429 Medium V690 The 'CPLStringList' 
> class
>    implements the move assignment operator, but lacks a move constructor.
>    It is dangerous to use such a class.
>
>    General Analysis cpl_json.h:53 Medium V690 The 'CPLJSONObject' class
>    implements the move assignment operator, but lacks a move constructor.
>    It is dangerous to use such a class.
>
> Any idea whether there is a missing move constructor
> and whether this is a problem ?
>
> Thanks,
>
-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list