mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Fix compiles on VS2017 and GCC
VS2017 took issue with treating size_t and uint32_t the same. It also couldn't find various alphanumeric is* functions without the <cctype> header. Gcc complainted about a variable potentially used uninitialized. Change-Id: I452b68c6597bae254f32e5a350656e65c8934b6e Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/18901 Reviewed-by: dan sinclair <dsinclair@google.com>
This commit is contained in:
@@ -37,7 +37,7 @@ TEST_F(ScopeStackTest, Global_SetWithPointer) {
|
||||
ScopeStack<ast::Variable*> s;
|
||||
s.set_global("var", &v);
|
||||
|
||||
ast::Variable* v2;
|
||||
ast::Variable* v2 = nullptr;
|
||||
EXPECT_TRUE(s.get("var", &v2));
|
||||
EXPECT_EQ(v2->name(), "my_var");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user