summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-15 11:39:58 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-15 11:40:06 -0800
commitcc4113a11c8214bb23844716ec22e310b444af07 (patch)
treeecbd7ccf462cebfcacdb1caf0ee94d3efd2abb61
parent5831d0db76c60d4199ace375fa7d55179c3e3ce5 (diff)
Fix warning: variable ‘pCg14’ set but not used [-Wunused-but-set-variable]
cg14_driver.c: In function ‘CG14FreeRec’: cg14_driver.c:165:13: warning: variable ‘pCg14’ set but not used [-Wunused-but-set-variable] 165 | Cg14Ptr pCg14; | ^~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/cg14_driver.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cg14_driver.c b/src/cg14_driver.c
index 1f152f5..66bcc75 100644
--- a/src/cg14_driver.c
+++ b/src/cg14_driver.c
@@ -162,13 +162,9 @@ CG14GetRec(ScrnInfoPtr pScrn)
static void
CG14FreeRec(ScrnInfoPtr pScrn)
{
- Cg14Ptr pCg14;
-
if (pScrn->driverPrivate == NULL)
return;
- pCg14 = GET_CG14_FROM_SCRN(pScrn);
-
free(pScrn->driverPrivate);
pScrn->driverPrivate = NULL;