Skip to content

Commit

Permalink
Fix clang-13 unused-private-field
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesfleche committed Jul 15, 2022
1 parent 6414130 commit 7788e6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pxr/base/tf/pyObjWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include "pxr/pxr.h"

#include "pxr/base/arch/pragmas.h"
#include "pxr/base/tf/api.h"

#ifdef PXR_PYTHON_SUPPORT_ENABLED
Expand Down Expand Up @@ -57,7 +58,10 @@ class TfPyObjWrapperStub
static constexpr std::size_t Align = 8;

private:
ARCH_PRAGMA_PUSH
ARCH_PRAGMA_UNUSED_PRIVATE_FIELD
std::aligned_storage<Size, Align>::type _stub;
ARCH_PRAGMA_POP
};


Expand Down
4 changes: 4 additions & 0 deletions pxr/base/trace/collector.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

#include "pxr/base/tf/pyTracing.h"

#include "pxr/base/arch/pragmas.h"
#include "pxr/base/tf/singleton.h"
#include "pxr/base/tf/refBase.h"
#include "pxr/base/tf/refPtr.h"
Expand Down Expand Up @@ -619,7 +620,10 @@ class TraceCollector : public TfWeakBase {

TimeStamp _measuredScopeOverhead;

ARCH_PRAGMA_PUSH
ARCH_PRAGMA_UNUSED_PRIVATE_FIELD
std::atomic<int> _isPythonTracingEnabled;
ARCH_PRAGMA_POP
TfPyTraceFnId _pyTraceFnId;
};

Expand Down

0 comments on commit 7788e6f

Please sign in to comment.