Skip to content

Commit

Permalink
Memory/constructor/warning clean-up. Addresses issue #705.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkslang committed Feb 2, 2017
1 parent f1aeac8 commit 32fd5d2
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion glslang/Include/PoolAlloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ extern TPoolAllocator& GetThreadPoolAllocator();

struct TThreadMemoryPools
{
TPoolAllocator* threadPoolAllocator;
TPoolAllocator* threadPoolAllocator;
};

void SetThreadPoolAllocator(TPoolAllocator& poolAllocator);
Expand Down
4 changes: 2 additions & 2 deletions glslang/Include/revision.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).

#define GLSLANG_REVISION "Overload400-PrecQual.1773"
#define GLSLANG_DATE "19-Jan-2017"
#define GLSLANG_REVISION "Overload400-PrecQual.1804"
#define GLSLANG_DATE "02-Feb-2017"
4 changes: 2 additions & 2 deletions glslang/MachineIndependent/PoolAlloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ void SetThreadPoolAllocator(TPoolAllocator& poolAllocator)
TPoolAllocator::TPoolAllocator(int growthIncrement, int allocationAlignment) :
pageSize(growthIncrement),
alignment(allocationAlignment),
freeList(0),
inUseList(0),
freeList(nullptr),
inUseList(nullptr),
numCalls(0)
{
//
Expand Down
1 change: 1 addition & 0 deletions glslang/MachineIndependent/ShaderLang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1632,6 +1632,7 @@ TProgram::TProgram() : pool(0), reflection(0), ioMapper(nullptr), linked(false)

TProgram::~TProgram()
{
delete ioMapper;
delete infoSink;
delete reflection;

Expand Down
3 changes: 3 additions & 0 deletions glslang/MachineIndependent/iomapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ struct TResolverAdaptor
TIoMapResolver& resolver;
TInfoSink& infoSink;
bool& error;

private:
TResolverAdaptor& operator=(TResolverAdaptor&);
};

/*
Expand Down
1 change: 1 addition & 0 deletions glslang/Public/ShaderLang.h
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ class TProgram {
bool linked;

private:
TProgram(TProgram&);
TProgram& operator=(TProgram&);
};

Expand Down
2 changes: 2 additions & 0 deletions hlsl/hlslGrammar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2319,6 +2319,8 @@ bool HlslGrammar::acceptPostfixExpression(TIntermTyped*& node)
tFinalize(HlslParseContext& p) : parseContext(p) { }
~tFinalize() { parseContext.finalizeFlattening(); }
HlslParseContext& parseContext;
private:
tFinalize& operator=(tFinalize&) { }
} finalize(parseContext);

// Initialize the flattening accumulation data, so we can track data across multiple bracket or
Expand Down

0 comments on commit 32fd5d2

Please sign in to comment.