From 03de737f0d18526b99b59a1810c7e290b66f4be2 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Thu, 6 Jul 2017 11:11:01 -0700 Subject: Fix many warnings-as-errors issues. The code should now compile cleanly with warnings as errors for VS2015 with `W3`. Most of the changes had to do with propagating a real pointer-sized integer type through code that had been using `int`. --- source/slang/slang-stdlib.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/slang/slang-stdlib.cpp') diff --git a/source/slang/slang-stdlib.cpp b/source/slang/slang-stdlib.cpp index 513fa3b96..ff727cbb6 100644 --- a/source/slang/slang-stdlib.cpp +++ b/source/slang/slang-stdlib.cpp @@ -1598,10 +1598,9 @@ namespace Slang { 3, "Alpha" }, }; - for(auto cc : kGatherComponets) + for(auto kk : kGatherComponets) { - auto componentIndex = cc.componentIndex; - auto componentName = cc.componentName; + auto componentName = kk.componentName; EMIT_LINE_DIRECTIVE(); sb << "vector Gather" << componentName << "(SamplerState s, "; -- cgit v1.2.3