diff --git a/ice40/tests/hx1k.cc b/ice40/tests/hx1k.cc index 28139c5a..6c76a9d7 100644 --- a/ice40/tests/hx1k.cc +++ b/ice40/tests/hx1k.cc @@ -37,7 +37,7 @@ class HX1KTest : public ::testing::Test virtual void TearDown() { delete ctx; } ArchArgs chipArgs; - Context *ctx; + Context *ctx = nullptr; }; TEST_F(HX1KTest, bel_names) diff --git a/ice40/tests/hx8k.cc b/ice40/tests/hx8k.cc index 42bb7b4d..35d5882a 100644 --- a/ice40/tests/hx8k.cc +++ b/ice40/tests/hx8k.cc @@ -37,7 +37,7 @@ class HX8KTest : public ::testing::Test virtual void TearDown() { delete ctx; } ArchArgs chipArgs; - Context *ctx; + Context *ctx = nullptr; }; TEST_F(HX8KTest, bel_names) diff --git a/ice40/tests/lp1k.cc b/ice40/tests/lp1k.cc index 332c0c32..07e34acb 100644 --- a/ice40/tests/lp1k.cc +++ b/ice40/tests/lp1k.cc @@ -37,7 +37,7 @@ class LP1KTest : public ::testing::Test virtual void TearDown() { delete ctx; } ArchArgs chipArgs; - Context *ctx; + Context *ctx = nullptr; }; TEST_F(LP1KTest, bel_names) diff --git a/ice40/tests/lp384.cc b/ice40/tests/lp384.cc index dfa855ee..daeacfa0 100644 --- a/ice40/tests/lp384.cc +++ b/ice40/tests/lp384.cc @@ -37,7 +37,7 @@ class LP384Test : public ::testing::Test virtual void TearDown() { delete ctx; } ArchArgs chipArgs; - Context *ctx; + Context *ctx = nullptr; }; TEST_F(LP384Test, bel_names) diff --git a/ice40/tests/lp8k.cc b/ice40/tests/lp8k.cc index 00a5f640..631d0984 100644 --- a/ice40/tests/lp8k.cc +++ b/ice40/tests/lp8k.cc @@ -37,7 +37,7 @@ class LP8KTest : public ::testing::Test virtual void TearDown() { delete ctx; } ArchArgs chipArgs; - Context *ctx; + Context *ctx = nullptr; }; TEST_F(LP8KTest, bel_names) diff --git a/ice40/tests/up5k.cc b/ice40/tests/up5k.cc index cf6adad9..2c705a1b 100644 --- a/ice40/tests/up5k.cc +++ b/ice40/tests/up5k.cc @@ -37,7 +37,7 @@ class UP5KTest : public ::testing::Test virtual void TearDown() { delete ctx; } ArchArgs chipArgs; - Context *ctx; + Context *ctx = nullptr; }; TEST_F(UP5KTest, bel_names)