diff options
author | dan sinclair <dj2@everburning.com> | 2019-01-17 16:23:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-17 16:23:36 -0500 |
commit | be92db07f88dd4594fa99a443bb8ef60544422d3 (patch) | |
tree | 11dc762419720bd18bec24e3535efa5218680328 /src/verifier.cc | |
parent | 3e4f538eb4e54cf5ec97f66f026bb00809661940 (diff) | |
download | amber-be92db07f88dd4594fa99a443bb8ef60544422d3.tar.gz |
Change initializers to make GCC happy. (#232)
Using the = {} initializer syntax causes missing-field-initializers
warnings for some versions of GCC. This CL converts all uses of = {} to
construct the actual object desired instead.
Diffstat (limited to 'src/verifier.cc')
-rw-r--r-- | src/verifier.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/verifier.cc b/src/verifier.cc index 4a0a0d2..a170c30 100644 --- a/src/verifier.cc +++ b/src/verifier.cc @@ -228,8 +228,8 @@ Result Verifier::Probe(const ProbeCommand* command, std::to_string(texel_stride) + " bytes each"); } - double tolerance[4] = {}; - bool is_tolerance_percent[4] = {}; + double tolerance[4] = {0, 0, 0, 0}; + bool is_tolerance_percent[4] = {0, 0, 0, 0}; SetupToleranceForTexels(command, tolerance, is_tolerance_percent); // TODO(jaebaek): Support all VkFormat |