Skip to content

Instantly share code, notes, and snippets.

@alexesDev
Last active January 28, 2018 11:55
Show Gist options
  • Save alexesDev/8b177d3ec33784cc1b26222e9b4daa09 to your computer and use it in GitHub Desktop.
Save alexesDev/8b177d3ec33784cc1b26222e9b4daa09 to your computer and use it in GitHub Desktop.
www.viva64.com/en/w 1 err Help: The documentation for all analyzer warnings is available here: https://www.viva64.com/en/w/.
/home/alexes/projects/corrade/src/Corrade/Utility/ConfigurationGroup.h 440 note V688 The '_values' local variable possesses the same name as one of the class members, which can result in a confusion.
/home/alexes/projects/corrade/src/Corrade/Containers/ArrayView.h 220 note V769 The '_data' pointer in the '_data + _size' expression could be nullptr. In such case, resulting value will be senseless and it should not be used.
/home/alexes/projects/corrade/src/Corrade/TestSuite/Compare/FloatingPoint.cpp 39 err V501 There are identical sub-expressions to the left and to the right of the '!=' operator: actual != actual
/home/alexes/projects/corrade/src/Corrade/TestSuite/Compare/FloatingPoint.cpp 39 err V501 There are identical sub-expressions to the left and to the right of the '!=' operator: expected != expected
/home/alexes/projects/corrade/src/Corrade/TestSuite/Implementation/BenchmarkStats.h 48 note V636 The 'batchSize * measurements.size()' expression was implicitly cast from 'size_t' type to 'double' type. Consider utilizing an explicit type cast to avoid overflow. An example: double A = (double)(X) * Y;.
/home/alexes/projects/corrade/src/Corrade/TestSuite/Tester.cpp 66 note V730 Not all members of a class are initialized inside the constructor. Consider inspecting: _testCaseId, _testCaseInstanceId, _testCaseRepeatId, _benchmarkBatchSize, _benchmarkBegin, _benchmarkResult, ...
/home/alexes/projects/corrade/src/Corrade/Utility/Arguments.cpp 644 warn V547 Expression 'entry.type != Type::Argument' is always true.
/home/alexes/projects/corrade/src/Corrade/Utility/ConfigurationGroup.cpp 51 warn V794 The copy operator should be protected from the case of 'this == &other'.
/home/alexes/projects/corrade/src/Corrade/Utility/ConfigurationGroup.cpp 69 warn V794 The copy operator should be protected from the case of 'this == &other'.
/home/alexes/projects/corrade/src/Corrade/Utility/Debug.cpp 103 warn V536 Be advised that the utilized constant value is represented by an octal form. Oct: '\\033', Dec: 27.
/home/alexes/projects/corrade/src/Corrade/Utility/Debug.cpp 120 warn V536 Be advised that the utilized constant value is represented by an octal form. Oct: '\\033', Dec: 27.
Total messages: 11
Filtered messages: 11
www.viva64.com/en/w 1 err Help: The documentation for all analyzer warnings is available here: https://www.viva64.com/en/w/.
/usr/local/include/Corrade/Containers/ArrayView.h 220 note V769 The '_data' pointer in the '_data + _size' expression could be nullptr. In such case, resulting value will be senseless and it should not be used.
/usr/local/include/Corrade/Containers/Optional.h 339 warn V794 The copy operator should be protected from the case of 'this == &other'.
/usr/local/include/Corrade/Containers/Optional.h 345 warn V794 The copy operator should be protected from the case of 'this == &other'.
/home/alexes/projects/magnum/src/MagnumExternal/Optional/Test/StdOptionalTest.cpp 72 warn V547 Expression '!empty' is always false.
/home/alexes/projects/magnum/src/Magnum/Math/Vector3.h 248 note V659 Declarations of functions with 'xy' name differ in the 'const' keyword only, but the bodies of these functions have different composition. This is suspicious and can possibly be an error. Check lines: 247, 248.
/home/alexes/projects/magnum/src/Magnum/Math/Vector4.h 179 note V659 Declarations of functions with 'xyz' name differ in the 'const' keyword only, but the bodies of these functions have different composition. This is suspicious and can possibly be an error. Check lines: 178, 179.
/home/alexes/projects/magnum/src/Magnum/Math/Vector4.h 198 note V659 Declarations of functions with 'xy' name differ in the 'const' keyword only, but the bodies of these functions have different composition. This is suspicious and can possibly be an error. Check lines: 197, 198.
/home/alexes/projects/magnum/src/Magnum/Array.h 199 note V659 Declarations of functions with 'xy' name differ in the 'const' keyword only, but the bodies of these functions have different composition. This is suspicious and can possibly be an error. Check lines: 198, 199.
/home/alexes/projects/magnum/src/Magnum/AbstractFramebuffer.h 741 err V730 Not all members of a class are initialized inside the constructor. Consider inspecting: _id.
/home/alexes/projects/magnum/src/Magnum/BufferImage.h 491 err V730 Not all members of a class are initialized inside the constructor. Consider inspecting: _dataSize.
/home/alexes/projects/magnum/src/Magnum/AbstractTexture.cpp 57 note V550 An odd precise comparison: value == 0.0f. It's probably better to use a comparison with defined precision: fabs(A - B) < Epsilon.
/home/alexes/projects/magnum/src/Magnum/Context.cpp 892 warn V719 The switch statement does not cover all values of the 'DetectedDriver' enum: AMD.
/home/alexes/projects/magnum/src/Magnum/Context.cpp 460 err V730 Not all members of a class are initialized inside the constructor. Consider inspecting: _functionLoader, _displayInitializationLog.
/home/alexes/projects/magnum/src/Magnum/Mesh.cpp 197 note V730 Not all members of a class are initialized inside the constructor. Consider inspecting: _count, _baseVertex, _instanceCount, _baseInstance, _indexStart, _indexEnd, ...
/home/alexes/projects/magnum/src/Magnum/ResourceManager.h 602 err V516 Consider inspecting an odd expression. Non-null function pointer is compared to null: 'referenceCount == 0'.
/home/alexes/projects/magnum/src/Magnum/Sampler.cpp 59 note V550 An odd precise comparison: value == 0.0f. It's probably better to use a comparison with defined precision: fabs(A - B) < Epsilon.
/home/alexes/projects/magnum/src/Magnum/Implementation/RendererState.cpp 90 err V730 Not all members of a class are initialized inside the constructor. Consider inspecting: disengagedRowLength.
/home/alexes/projects/magnum/src/Magnum/Implementation/State.cpp 55 note V688 The 'context' function argument possesses the same name as one of the class members, which can result in a confusion.
/usr/local/include/Corrade/Utility/ConfigurationGroup.h 440 note V688 The '_values' local variable possesses the same name as one of the class members, which can result in a confusion.
/home/alexes/projects/magnum/src/Magnum/Implementation/TransformFeedbackState.cpp 13 warn V730 It is possible that not all members of a class are initialized inside the constructor. Consider inspecting: binding.
/home/alexes/projects/magnum/src/Magnum/Math/Algorithms/Test/GramSchmidtTest.cpp 69 note V624 There is probably a misprint in '1.570777f' constant. Consider using the M_PI_2 constant from <math.h>.
/home/alexes/projects/magnum/src/Magnum/Math/Test/UnitTest.cpp 124 err V501 There are identical sub-expressions to the left and to the right of the '<' operator: Sec(3.0f) < Sec(3.0f)
/home/alexes/projects/magnum/src/Magnum/Math/Test/UnitTest.cpp 125 err V501 There are identical sub-expressions to the left and to the right of the '<=' operator: Sec(3.0f) <= Sec(3.0f)
/home/alexes/projects/magnum/src/Magnum/Math/Test/UnitTest.cpp 126 err V501 There are identical sub-expressions to the left and to the right of the '>=' operator: Sec(3.0f) >= Sec(3.0f)
/home/alexes/projects/magnum/src/Magnum/Math/Test/UnitTest.cpp 127 err V501 There are identical sub-expressions to the left and to the right of the '>' operator: Sec(3.0f) > Sec(3.0f)
/home/alexes/projects/magnum/src/Magnum/Math/Test/UnitTest.cpp 153 err V501 There are identical sub-expressions 'Sec { Constants::nan() }' to the left and to the right of the '!=' operator.
/home/alexes/projects/magnum/src/Magnum/Math/Test/UnitTest.cpp 154 err V501 There are identical sub-expressions 'Sec { Constants::nan() }' to the left and to the right of the '==' operator.
/home/alexes/projects/magnum/src/Magnum/Math/Test/HalfTest.cpp 571 err V501 There are identical sub-expressions to the left and to the right of the '==' operator: a == a
/home/alexes/projects/magnum/src/Magnum/Math/Test/HalfTest.cpp 583 err V501 There are identical sub-expressions to the left and to the right of the '!=' operator: a != a
/home/alexes/projects/magnum/src/Magnum/Math/Test/HalfTest.cpp 615 note V624 The constant 3.14159 is being utilized. The resulting value could be inaccurate. Consider using the M_PI constant from <math.h>.
/home/alexes/projects/magnum/src/Magnum/Math/Test/HalfTest.cpp 615 note V624 The constant 1.4142 is being utilized. The resulting value could be inaccurate. Consider using the M_SQRT2 constant from <math.h>.
/home/alexes/projects/magnum/src/Magnum/Math/Half.h 94 warn V730 Not all members of a class are initialized inside the constructor. Consider inspecting: _data.
/home/alexes/projects/magnum/src/Magnum/Math/Test/DualTest.cpp 188 note V550 An odd precise comparison: Dual(1.0f, 0.0f) == 1.0f. It's probably better to use a comparison with defined precision: fabs(A - B) < Epsilon.
/home/alexes/projects/magnum/src/Magnum/Math/Test/DualTest.cpp 189 note V550 An odd precise comparison: Dual(1.0f, 3.0f) != 1.0f. It's probably better to use a comparison with defined precision: fabs(A - B) > Epsilon.
/home/alexes/projects/magnum/src/Magnum/Math/Test/RangeTest.cpp 404 err V501 There are identical sub-expressions 'Range2Di({ 34, 23 }, { 47, 30 })' to the left and to the right of the '==' operator.
/home/alexes/projects/magnum/src/Magnum/Math/Test/BoolVectorTest.cpp 181 err V501 There are identical sub-expressions to the left and to the right of the '==' operator: a == a
/home/alexes/projects/magnum/src/Magnum/Math/Test/QuaternionTest.cpp 386 err V501 There are identical sub-expressions 'Quaternion().axis()' to the left and to the right of the '!=' operator.
/home/alexes/projects/magnum/src/Magnum/Math/Test/ConstantsTest.cpp 76 err V501 There are identical sub-expressions to the left and to the right of the '!=' operator: a != a
/home/alexes/projects/magnum/src/Magnum/Math/Test/ConstantsTest.cpp 82 err V501 There are identical sub-expressions 'Constants < T >::inf()' to the left and to the right of the '-' operator.
/home/alexes/projects/magnum/src/Magnum/Math/Test/ConstantsTest.cpp 83 err V501 There are identical sub-expressions to the left and to the right of the '!=' operator: h != h
/home/alexes/projects/magnum/src/Magnum/Math/Test/TypeTraitsTest.cpp 244 note V656 Variables 'a', 'b' are initialized through the call to the same function. It's probably an error or un-optimized code. Check lines: 243, 244.
/home/alexes/projects/magnum/src/Magnum/Math/Test/VectorTest.cpp 325 err V501 There are identical sub-expressions 'Vector4i(1, - 3, 5, - 10)' to the left and to the right of the '==' operator.
/home/alexes/projects/magnum/src/Magnum/Math/Test/FrustumTest.cpp 310 err V501 There are identical sub-expressions to the left and to the right of the '==' operator: a == a
/home/alexes/projects/magnum/src/Magnum/Math/Test/RectangularMatrixTest.cpp 365 err V501 There are identical sub-expressions to the left and to the right of the '==' operator: ai == ai
/home/alexes/projects/magnum/src/Magnum/Math/Test/ColorTest.cpp 476 note V624 There is probably a misprint in '0.702007f' constant. Consider using the M_SQRT1_2 constant from <math.h>.
/home/alexes/projects/magnum/src/Magnum/Math/Test/ColorTest.cpp 477 note V624 There is probably a misprint in '0.702007f' constant. Consider using the M_SQRT1_2 constant from <math.h>.
/home/alexes/projects/magnum/src/Magnum/Platform/AbstractXApplication.cpp 46 err V730 Not all members of a class are initialized inside the constructor. Consider inspecting: _display, _window, _deleteWindow.
/home/alexes/projects/magnum/src/Magnum/Trade/Test/CameraDataTest.cpp 114 warn V519 The 'd' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 113, 114.
/home/alexes/projects/magnum/src/Magnum/Trade/Test/LightDataTest.cpp 87 warn V519 The 'd' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 86, 87.
/home/alexes/projects/magnum/src/Magnum/Trade/Test/ImageDataTest.cpp 118 warn V519 The 'c' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 117, 118.
/home/alexes/projects/magnum/src/Magnum/Trade/Test/ImageDataTest.cpp 154 warn V519 The 'c' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 153, 154.
/home/alexes/projects/magnum/src/Magnum/Trade/Test/ObjectData3DTest.cpp 123 note V519 The 'd' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 121, 123.
/home/alexes/projects/magnum/src/Magnum/Trade/Test/MeshData2DTest.cpp 160 note V519 The 'd' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 155, 160.
/home/alexes/projects/magnum/src/Magnum/Trade/Test/TextureDataTest.cpp 106 note V519 The 'd' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 99, 106.
/home/alexes/projects/magnum/src/Magnum/Trade/Test/SceneDataTest.cpp 75 warn V519 The 'd' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 74, 75.
/home/alexes/projects/magnum/src/Magnum/Trade/Test/ObjectData2DTest.cpp 111 note V519 The 'd' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 109, 111.
/home/alexes/projects/magnum/src/Magnum/Trade/Test/MeshData3DTest.cpp 185 note V519 The 'd' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 179, 185.
/home/alexes/projects/magnum/src/Magnum/DebugTools/CompareImage.h 62 warn V730 Not all members of a class are initialized inside the constructor. Consider inspecting: _maxThreshold, _meanThreshold, _max, _mean.
/home/alexes/projects/magnum/src/Magnum/Primitives/Cylinder.cpp 63 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 57, 63.
/home/alexes/projects/magnum/src/Magnum/SceneGraph/Animable.hpp 113 note V550 An odd precise comparison: animable._duration != 0.0f. It's probably better to use a comparison with defined precision: fabs(A - B) > Epsilon.
/home/alexes/projects/magnum/src/Magnum/SceneGraph/FeatureGroup.hpp 46 note V783 Dereferencing of the invalid iterator might take place.
/home/alexes/projects/magnum/src/Magnum/SceneGraph/AbstractTranslationRotation3D.h 171 note V524 It is odd that the body of 'rotateYLocal' function is fully equivalent to the body of 'rotateY' function.
/home/alexes/projects/magnum/src/Magnum/SceneGraph/Test/ObjectTest.cpp 163 err V773 Visibility scope of the 'childOfOrphan' pointer was exited without releasing the memory. A memory leak is possible.
/home/alexes/projects/magnum/src/Magnum/SceneGraph/Test/ObjectTest.cpp 188 err V773 Visibility scope of the 'childOne' pointer was exited without releasing the memory. A memory leak is possible.
/home/alexes/projects/magnum/build/src/Magnum/Shaders/resource_MagnumShaders_RCS.cpp 1 err V009 To use free version of PVS-Studio, source code files are required to start with a special comment.
/home/alexes/projects/magnum/src/Magnum/Shapes/Composition.cpp 80 warn V794 The copy operator should be protected from the case of 'this == &other'.
/home/alexes/projects/magnum/src/Magnum/Shapes/Plane.cpp 48 note V550 An odd precise comparison: t != Constants::inf(). It's probably better to use a comparison with defined precision: fabs(A - B) > Epsilon.
/home/alexes/projects/magnum/src/Magnum/Shapes/Plane.cpp 48 note V550 An odd precise comparison: t != - Constants::inf(). It's probably better to use a comparison with defined precision: fabs(A - B) > Epsilon.
/home/alexes/projects/magnum/src/Magnum/Shapes/Test/CompositionTest.cpp 106 warn V652 The '!' operation is executed 3 or more times in succession. Consider inspecting the '!!!Shapes::Point2D(Vector2::xAxis(0.5f))' expression.
/home/alexes/projects/magnum/src/Magnum/Shapes/Test/CompositionTest.cpp 106 warn V652 The '!' operation is executed 3 or more times in succession.
/home/alexes/projects/magnum/src/Magnum/Shapes/Test/ShapeTest.cpp 102 err V773 Visibility scope of the 'shape' pointer was exited without releasing the memory. A memory leak is possible.
/home/alexes/projects/magnum/src/Magnum/Shapes/Test/ShapeTest.cpp 225 err V773 Visibility scope of the 'shape' pointer was exited without releasing the memory. A memory leak is possible.
/home/alexes/projects/magnum/src/Magnum/Text/AbstractFont.cpp 39 warn V730 Not all members of a class are initialized inside the constructor. Consider inspecting: _ascent, _descent, _lineHeight.
/home/alexes/projects/magnum/src/Magnum/Text/AbstractFont.cpp 41 err V730 Not all members of a class are initialized inside the constructor. Consider inspecting: _ascent, _descent.
/home/alexes/projects/magnum/build/src/Magnum/TextureTools/resource_MagnumTextureTools_RCS.cpp 1 err V009 To use free version of PVS-Studio, source code files are required to start with a special comment.
/home/alexes/projects/magnum/src/Magnum/Test/PixelStorageTest.cpp 125 err V501 There are identical sub-expressions to the left and to the right of the '==' operator: a == a
/home/alexes/projects/magnum/src/Magnum/Test/PixelStorageTest.cpp 127 err V501 There are identical sub-expressions to the left and to the right of the '==' operator: PixelStorage { } == PixelStorage { }
/home/alexes/projects/magnum/src/Magnum/Test/PixelStorageTest.cpp 148 err V501 There are identical sub-expressions to the left and to the right of the '==' operator: a == a
/home/alexes/projects/magnum/src/Magnum/Test/PixelStorageTest.cpp 150 err V501 There are identical sub-expressions 'CompressedPixelStorage { }' to the left and to the right of the '==' operator.
/home/alexes/projects/magnum/src/Magnum/Test/ArrayTest.cpp 76 err V501 There are identical sub-expressions 'Array < 3, Int > (5, 6, 7)' to the left and to the right of the '==' operator.
/home/alexes/projects/magnum/src/Magnum/Test/ImageTest.cpp 125 warn V519 The 'c' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 124, 125.
/home/alexes/projects/magnum/doc/snippets/debugtools-compareimage.cpp 1 err V009 To use free version of PVS-Studio, source code files are required to start with a special comment.
Total messages: 90
Filtered messages: 82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment