fixed MSVC 2015 compile warnings
authorJohannes van Waveren <janpaul.vanwaveren@oculus.com>
Fri, 21 Oct 2016 08:21:12 +0000 (17:21 +0900)
committerJohannes van Waveren <janpaul.vanwaveren@oculus.com>
Fri, 21 Oct 2016 08:21:12 +0000 (17:21 +0900)
SPIRV/GlslangToSpv.h
glslang/Include/Common.h
glslang/Include/intermediate.h

index 97b280c..428cfb6 100644 (file)
 //ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 //POSSIBILITY OF SUCH DAMAGE.
 
+#if _MSC_VER >= 1900
+    #pragma warning(disable : 4464) // relative include path contains '..'
+#endif
+
 #include "../glslang/Include/intermediate.h"
 
 #include <string>
index efb78d4..368d874 100644 (file)
@@ -81,6 +81,10 @@ inline long long int atoll (const char* str)
     #pragma warning(disable : 4201) // nameless union
 #endif
 
+#if _MSC_VER >= 1900
+    #pragma warning(disable : 4464) // relative include path contains '..'
+#endif
+
 #include <set>
 #include <unordered_set>
 #include <vector>
index d9982a3..06869e5 100644 (file)
 #ifndef __INTERMEDIATE_H
 #define __INTERMEDIATE_H
 
+#if _MSC_VER >= 1900
+       #pragma warning( disable : 4464 )       // relative include path contains '..'
+       #pragma warning( disable : 5026 )       // 'glslang::TIntermUnary': move constructor was implicitly defined as deleted
+#endif
+
 #include "../Include/Common.h"
 #include "../Include/Types.h"
 #include "../Include/ConstantUnion.h"