Skip to content

Commit eeac334

Browse files
committed
Merge branch 'vikhik-fix/clang-warnings'
2 parents 4677418 + c8def13 commit eeac334

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

include/vsg/core/IntrusiveAllocator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ namespace vsg
106106

107107
Element() = default;
108108
Element(const Element&) = default;
109+
Element& operator=(const Element&) = default;
109110
};
110111

111112
struct FreeList

include/vsg/platform/win32/Win32_Window.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ namespace vsgWin32
4141
uint16_t modifierMask = 0;
4242

4343
// see https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags
44-
WORD vkCode = LOWORD(wParam); // virtual-key code
4544
WORD keyFlags = HIWORD(lParam);
4645
WORD scanCode = LOBYTE(keyFlags); // scan code
4746
BOOL isExtendedKey = (keyFlags & KF_EXTENDED) == KF_EXTENDED; // extended-key flag, 1 if scancode has 0xE0 prefix

include/vsg/vk/State.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1919
#include <vsg/vk/CommandBuffer.h>
2020

2121
#include <array>
22-
#include <map>
2322
#include <stack>
2423

2524
namespace vsg
@@ -33,7 +32,8 @@ namespace vsg
3332
class StateStack
3433
{
3534
public:
36-
StateStack() {}
35+
StateStack() = default;
36+
StateStack(const StateStack& rhs) = default;
3737

3838
using Stack = std::array<const T*, STATESTACK_SIZE>;
3939
Stack stack;

src/vsg/utils/PolytopeIntersector.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ namespace vsg
7878
{
7979
size_t numNegativeDistances = 0;
8080
size_t numPositiveDistances = 0;
81-
size_t numZeroDistances = 0;
8281
processedDistances.resize(0);
8382
for (const auto& v : processedVertices)
8483
{
@@ -88,8 +87,6 @@ namespace vsg
8887
++numNegativeDistances;
8988
else if (d > 0.0)
9089
++numPositiveDistances;
91-
else
92-
++numZeroDistances;
9390
}
9491

9592
if (numNegativeDistances > 0)

0 commit comments

Comments
 (0)