mirror of
https://github.com/X11Libre/xf86-video-sis.git
synced 2026-03-23 17:19:39 +00:00
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 <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
54407b0e25
commit
f9a0717a24
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user