From: Vinson Lee <vlee@freedesktop.org>
To: trinity@vger.kernel.org
Subject: [PATCH v2] Remove unused variable in fds/drm.c.
Date: Fri, 4 Dec 2015 02:18:52 -0800 [thread overview]
Message-ID: <1449224332-29060-1-git-send-email-vlee@freedesktop.org> (raw)
Fix 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>
---
v2 - Fixed typo in commit message.
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
next reply other threads:[~2015-12-04 10:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 10:18 Vinson Lee [this message]
2015-12-04 18:07 ` [PATCH v2] Remove unused variable in fds/drm.c Dave Jones
2015-12-04 18:49 ` Vinson Lee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1449224332-29060-1-git-send-email-vlee@freedesktop.org \
--to=vlee@freedesktop.org \
--cc=trinity@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).