Skip to content

Commit

Permalink
SetupDataPkg: Fix GCC failure in KnobService.py
Browse files Browse the repository at this point in the history
- Makes CachedPolicy type consistent in generated file.
- Removes unused CachedPolicyInitialize variable.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
  • Loading branch information
makubacki committed Sep 25, 2023
1 parent e758130 commit 153e9a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SetupDataPkg/Tools/KnobService.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,9 +972,7 @@ def generate_getter_implementation(schema, header_path, efi_type):
out.write("#pragma pack ()" + get_line_ending(efi_type))
out.write(get_line_ending(efi_type))

out.write("STATIC CHAR8 CachedPolicy[CACHED_POLICY_SIZE + CACHED_POLICY_HEADER_SIZE];")
out.write(get_line_ending(efi_type))
out.write("STATIC BOOLEAN CachedPolicyInitialized = FALSE;")
out.write("STATIC UINT8 CachedPolicy[CACHED_POLICY_SIZE + CACHED_POLICY_HEADER_SIZE];")
out.write(get_line_ending(efi_type))
out.write(get_assert_style(
efi_type,
Expand Down

0 comments on commit 153e9a2

Please sign in to comment.