glslang: Fix over 100 warnings from MSVC warning level 4.
[platform/upstream/glslang.git] / SPIRV / spvIR.h
index 718b3d5..ec75824 100644 (file)
@@ -210,6 +210,7 @@ public:
 \r
 protected:\r
     Block(const Block&);\r
+    Block& operator=(Block&);\r
 \r
     // To enforce keeping parent and ownership in sync:\r
     friend Function;\r
@@ -244,7 +245,7 @@ public:
     Id getParamId(int p) { return parameterInstructions[p]->getResultId(); }\r
 \r
     void addBlock(Block* block) { blocks.push_back(block); }\r
-    void popBlock(Block* block) { assert(blocks.back() == block); blocks.pop_back(); }\r
+    void popBlock(Block*) { blocks.pop_back(); }\r
 \r
     Module& getParent() const { return parent; }\r
     Block* getEntryBlock() const { return blocks.front(); }\r
@@ -269,6 +270,8 @@ public:
 \r
 protected:\r
     Function(const Function&);\r
+    Function& operator=(Function&);\r
+\r
     Module& parent;\r
     Instruction functionInstruction;\r
     std::vector<Instruction*> parameterInstructions;\r