From f9a0717a24943a3f6dce859c477200acc42a7c28 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 22 Jan 2026 18:42:07 +0100 Subject: [PATCH] sis6326_video: work around const issue XF86AttributeRec This struct unfortunately is used for both the case where those name fields are statically initialized as well as dynamically allocated. (and the corresponding code already taking care of that). Thus we have to explicitly ignore compiler warnings here. Signed-off-by: Enrico Weigelt, metux IT consult --- src/sis6326_video.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sis6326_video.c b/src/sis6326_video.c index 001446e..2f76336 100644 --- a/src/sis6326_video.c +++ b/src/sis6326_video.c @@ -212,12 +212,12 @@ static XF86VideoFormatRec SIS6326Formats[NUM_FORMATS] = static XF86AttributeRec SIS6326Attributes[NUM_ATTRIBUTES] = { - {XvSettable | XvGettable, 0, (1 << 24) - 1, "XV_COLORKEY"}, - {XvSettable | XvGettable, -128, 127, "XV_BRIGHTNESS"}, - {XvSettable | XvGettable, 0, 7, "XV_CONTRAST"}, - {XvSettable | XvGettable, 0, 1, "XV_AUTOPAINT_COLORKEY"}, - {XvSettable , 0, 0, "XV_SET_DEFAULTS"}, - {XvSettable | XvGettable, 0, 1, "XV_DISABLE_GRAPHICS"} + {XvSettable | XvGettable, 0, (1 << 24) - 1, (char*)"XV_COLORKEY"}, + {XvSettable | XvGettable, -128, 127, (char*)"XV_BRIGHTNESS"}, + {XvSettable | XvGettable, 0, 7, (char*)"XV_CONTRAST"}, + {XvSettable | XvGettable, 0, 1, (char*)"XV_AUTOPAINT_COLORKEY"}, + {XvSettable , 0, 0, (char*)"XV_SET_DEFAULTS"}, + {XvSettable | XvGettable, 0, 1, (char*)"XV_DISABLE_GRAPHICS"} }; #define NUM_IMAGES 6