summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-04-09 10:19:46 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-04-09 10:19:46 -0700
commitfc8f4fd967ffab492dfa23e3f71c3cb8d2cbc145 (patch)
tree4f64627bf3191c33716c2c6d0275b77b2c6a8b34
parentcfbbdffde628c762c5bb355f1871ce503c5d09f9 (diff)
Handle -Wunused-const-variable warnings
i128accel.c:95:18: warning: ‘split_size’ defined but not used [-Wunused-const-variable=] static const int split_size[] = { 0x20, 0x10, 0x08, 0x00 }; ^~~~~~~~~~ i128accel.c:94:18: warning: ‘max_size’ defined but not used [-Wunused-const-variable=] static const int max_size[] = { 0x80, 0x40, 0x20, 0x00 }; ^~~~~~~~ i128accel.c:93:18: warning: ‘min_size’ defined but not used [-Wunused-const-variable=] static const int min_size[] = { 0x62, 0x32, 0x1A, 0x00 }; ^~~~~~~~ i128accel.c:73:21: warning: ‘i128alu’ defined but not used [-Wunused-const-variable=] static const CARD32 i128alu[16] = ^~~~~~~ i128exa.c:450:33: warning: ‘dest_formats’ defined but not used [-Wunused-const-variable=] static const struct dest_format dest_formats[] = { ^~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/i128accel.c2
-rw-r--r--src/i128exa.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/i128accel.c b/src/i128accel.c
index ae8dac7..09c160a 100644
--- a/src/i128accel.c
+++ b/src/i128accel.c
@@ -68,6 +68,7 @@ static void I128ScreenToScreenBitBlt(ScrnInfoPtr pScrn, int nbox,
#define ENG_DONE() { while (pI128->mem.rbase_a[FLOW] & (FLOW_DEB | FLOW_MCB | FLOW_PRV)) ;}
+#ifdef HAVE_XAA_H
/* pre-shift rops and just or in as needed */
static const CARD32 i128alu[16] =
@@ -93,6 +94,7 @@ static const CARD32 i128alu[16] =
static const int min_size[] = { 0x62, 0x32, 0x1A, 0x00 };
static const int max_size[] = { 0x80, 0x40, 0x20, 0x00 };
static const int split_size[] = { 0x20, 0x10, 0x08, 0x00 };
+#endif
void
diff --git a/src/i128exa.c b/src/i128exa.c
index 94eb6ef..bc37a87 100644
--- a/src/i128exa.c
+++ b/src/i128exa.c
@@ -447,11 +447,11 @@ struct dest_format {
int i128_format;
};
+#if 0
static const struct dest_format dest_formats[] = {
{ 0, 0 }
};
-#if 0
static struct dest_format *
i128MapDestFormat(int fmt)
{