glslang: Fix over 100 warnings from MSVC warning level 4.
[platform/upstream/glslang.git] / SPIRV / SpvBuilder.h
index b4417df..b38d4a5 100644 (file)
@@ -101,7 +101,7 @@ public:
     Id makeMatrixType(Id component, int cols, int rows);\r
     Id makeArrayType(Id element, unsigned size);\r
     Id makeFunctionType(Id returnType, std::vector<Id>& paramTypes);\r
-    enum samplerContent {\r
+    enum samplerContent : unsigned {\r
         samplerContentTexture,\r
         samplerContentImage,\r
         samplerContentTextureFilter\r
@@ -250,7 +250,7 @@ public:
 \r
     // If the value passed in is an instruction and the precision is not EMpNone,\r
     // it gets tagged with the requested precision.\r
-    void setPrecision(Id value, Decoration precision)\r
+    void setPrecision(Id /* value */, Decoration /* precision */)\r
     {\r
         // TODO\r
     }\r
@@ -318,6 +318,9 @@ public:
         void makeEndIf();\r
 \r
     private:\r
+        If(const If&);\r
+        If& operator=(If&);\r
+\r
         Builder& builder;\r
         Id condition;\r
         Function* function;\r