diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-15 13:07:08 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-17 10:53:44 -0800 |
commit | b56894b531d78d2f7c301503a017bdccd0bf216f (patch) | |
tree | 6475c82cd6176591fe554b1068b69ab90f5e081e | |
parent | be81b93b6d376f5c7c5f56f9c34e65755d53357e (diff) |
cg6_driver.c: In function ‘CG6FreeRec’:
cg6_driver.c:166:12: warning: variable ‘pCg6’ set but not used [-Wunused-but-set-variable]
166 | Cg6Ptr pCg6;
| ^~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/cg6_driver.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cg6_driver.c b/src/cg6_driver.c index 4c7583f..bab4038 100644 --- a/src/cg6_driver.c +++ b/src/cg6_driver.c @@ -163,13 +163,9 @@ CG6GetRec(ScrnInfoPtr pScrn) static void CG6FreeRec(ScrnInfoPtr pScrn) { - Cg6Ptr pCg6; - if (pScrn->driverPrivate == NULL) return; - pCg6 = GET_CG6_FROM_SCRN(pScrn); - free(pScrn->driverPrivate); pScrn->driverPrivate = NULL; |