Merge pull request #7213 from siretty/cleanup_unused_var_empty_line_bool_init

Remove an Unused Variable Breaking the Build With Clang 13 on Linux and Minor Cleanup
This commit is contained in:
Chris Galvan
2022-01-31 11:22:26 -06:00
committed by GitHub
4 changed files with 3 additions and 5 deletions
@@ -223,7 +223,7 @@ namespace AWSCore
return;
}
[[maybe_unused]] bool saved {};
[[maybe_unused]] bool saved = false;
constexpr auto configurationMode =
AZ::IO::SystemFile::SF_OPEN_CREATE | AZ::IO::SystemFile::SF_OPEN_CREATE_PATH | AZ::IO::SystemFile::SF_OPEN_WRITE_ONLY;
if (AZ::IO::SystemFile outputFile; outputFile.Open(resolvedPathAWSPreference.c_str(), configurationMode))