[PATCH xf86-video-trident 1/2] Suppress defined but not used compilation warning
Kevin Brace
kevinbrace at gmx.com
Tue Dec 25 14:56:58 UTC 2018
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
src/trident_dac.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/trident_dac.c b/src/trident_dac.c
index a7bf588..725a603 100644
--- a/src/trident_dac.c
+++ b/src/trident_dac.c
@@ -107,6 +107,14 @@ TridentFindMode(int xres, int yres, int depth)
biosMode *mode;
switch (depth) {
+ case 1:
+ size = sizeof(bios1) / sizeof(biosMode);
+ mode = bios1;
+ break;
+ case 4:
+ size = sizeof(bios4) / sizeof(biosMode);
+ mode = bios4;
+ break;
case 8:
size = sizeof(bios8) / sizeof(biosMode);
mode = bios8;
--
2.7.4
More information about the xorg-devel
mailing list