* [PATCH] Remove unused variable in fds/drm.c.
@ 2015-12-04 10:16 Vinson Lee
0 siblings, 0 replies; only message in thread
From: Vinson Lee @ 2015-12-04 10:16 UTC (permalink / raw)
To: trinity
Fix with build error with GCC 5.2.1.
CC fds/drm.o
fds/drm.c: In function ‘open_drm_fds’:
fds/drm.c:70:15: error: unused variable ‘i’ [-Werror=unused-variable]
unsigned int i;
^
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
---
fds/drm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fds/drm.c b/fds/drm.c
index b7fc867..4c9b5c5 100644
--- a/fds/drm.c
+++ b/fds/drm.c
@@ -67,7 +67,6 @@ static void add_drm_obj(int fd)
static int open_drm_fds(void)
{
- unsigned int i;
int fd, dfd;
DIR *dir;
struct dirent *entry;
--
2.6.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-04 10:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-04 10:16 [PATCH] Remove unused variable in fds/drm.c Vinson Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).