Skip to content

Commit

Permalink
revert removing warning for gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
broskoTT committed Dec 11, 2024
1 parent 9ab40e7 commit 3190074
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/test_utils/stimulus_generators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,23 +548,13 @@ void RunMixedTransfers(
}
}

// TODO: This gives warning on GCC 14 only (not GCC 9, not clang), and I wasn't able to quickly figure out quickly.
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif

static ConstrainedTemplateTemplateGenerator<address_t, address_t, std::uniform_int_distribution>
get_default_address_generator(int seed, address_t start, address_t end) {
auto const& address_distribution = std::uniform_int_distribution<address_t>(start, end);
return ConstrainedTemplateTemplateGenerator<address_t, address_t, std::uniform_int_distribution>(
seed + 1, address_distribution, address_aligner);
}

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif

static ConstrainedTemplateTemplateGenerator<destination_t, int, std::uniform_int_distribution>
get_default_full_dram_dest_generator(int seed, Cluster* device) {
assert(device != nullptr);
Expand Down

0 comments on commit 3190074

Please sign in to comment.