static code analyzer test

Everything about the development of Urho3D.

static code analyzer test

PostPosted by codingmonkey » 12 Nov 2016, 10:00

Hi there!
after read this article https://hownot2code.com/2016/08/25/long ... /#more-977
I just curious about same typos and issues in Urho3d project.
and I find few issue or mb typos

for example this:
>autoLoadPaths[0]
mb this need to fix to autoLoadPaths[i]? because it in for-loop
Image

also you may download this plugin(http://www.viva64.com/us/pvs-studio/) and may see another typos and some troubles in code

add:
matrix2.h have float m02_ but no used anywhere anymore
User avatar
codingmonkey
Have many posts
Have many posts
 
Posts: 517
Joined: 21 Oct 2014, 19:26
Location: Russian Federation, Novosibirsk

Re: static code analyzer test

PostPosted by cadaver » 22 Nov 2016, 11:23

In the autoloadpath example the intention is to compare the first element.

But thanks for the matrix2 unused variable spotting.
User avatar
cadaver
Urho3D author
Urho3D author
 
Posts: 1802
Joined: 16 Jan 2014, 14:52
Location: Finland


Return to Developer Talk

Who is online

Users browsing this forum: No registered users and 0 guests

cron