[Interest] Klocwork error in Qt5 concurrentwrapper

Ramakanth Kesireddy rama.kesi at gmail.com
Mon Jun 1 05:20:43 CEST 2020


Thanks for your mail.

Basically Klocwork categories the severity as error mentioning void
function returns value under CODE VOIDRET pointing to the below function in
qtconcurrentfunctionwrappers.h as the cause of error severity.

Best Regards,
Ramakanth

On Sun, 31 May, 2020, 12:02 Thiago Macieira, <thiago.macieira at intel.com>
wrote:

> On Saturday, 30 May 2020 11:03:57 PDT Ramakanth Kesireddy wrote:
> > Void function returns value VOIDRET pointing to the below code in
> > qtbase/src/concurrent/qtconcurrentfunctionwrappers.h.
> >
> > template <class C, class U>
> >     inline void operator()(C &c, U &&u) const
> >     {
> >         return c.push_back(u);
> >     }
> >
> > Could you please let me know if the below singleton class code would
> > trigger above error and be ignored or not?
>
> Can you explain what the error is in the first place? Your tool seems to
> be
> complaining that a void function returned the void of another function,
> but
> there should be no harm in that.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200601/23d40fdf/attachment.html>


More information about the Interest mailing list