From cf5edc8448507930dfdbb10a4919407e765a19ef Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 17 Nov 2021 21:10:30 -0500 Subject: [PATCH] accelerants: Add default case for xy_command initialization. Silences a GCC 11 warning. --- src/add-ons/accelerants/intel_extreme/commands.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/add-ons/accelerants/intel_extreme/commands.h b/src/add-ons/accelerants/intel_extreme/commands.h index 094c5e21ab..b783156fe9 100644 --- a/src/add-ons/accelerants/intel_extreme/commands.h +++ b/src/add-ons/accelerants/intel_extreme/commands.h @@ -65,6 +65,10 @@ struct xy_command : command { mode = COMMAND_MODE_RGB32; opcode |= COMMAND_BLIT_RGBA; break; + default: + debugger("invalid bits_per_pixel for xy_command"); + mode = 0; + break; } dest_bytes_per_row = gInfo->shared_info->bytes_per_row;