Skip to content

Commit

Permalink
[apps] Fix maybe unitialized in bltgrid.c
Browse files Browse the repository at this point in the history
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
  • Loading branch information
gmbr3 committed Jan 3, 2025
1 parent 456f139 commit 5fb57b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Make.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ else
CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Wno-pointer-sign -Werror \
-fno-strict-aliasing \
-ffreestanding -fno-stack-protector -fno-stack-check \
$(if $(findstring 0,$(USING_CLANG)),-Wno-error=maybe-uninitialized,) \
$(if $(findstring 0,$(USING_CLANG)),-fno-merge-all-constants,)
endif

Expand Down
2 changes: 1 addition & 1 deletion apps/bltgrid.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fill_boxes(UINT32 *PixelBuffer, UINT32 Width, UINT32 Height)
*/
EFI_GRAPHICS_OUTPUT_BLT_PIXEL Red = {0, 0, 0xff, 0},
Green = {0, 0xff, 0, 0},
*Color;
*Color = NULL;

for (y = 0; y < Height; y++) {
Color = ((y / 32) % 2 == 0) ? &Red : &Green;
Expand Down

0 comments on commit 5fb57b0

Please sign in to comment.