tests: remove unused variables

As kindly pointed out by GCC.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
main
Emil Velikov 2015-02-23 14:02:44 +00:00
parent 4c6b1b1a82
commit bb6cc7c972
2 changed files with 2 additions and 3 deletions

View File

@ -40,8 +40,7 @@
*/ */
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
int fd, ret; int fd;
drm_set_version_t sv, version;
const char *name = "/dev/dri/card0"; const char *name = "/dev/dri/card0";
char *v; char *v;

View File

@ -122,7 +122,7 @@ static int rm_drawable(int fd, int drawable, int fail)
*/ */
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
int fd, ret, d1, d2; int fd, d1, d2;
if (getuid() != 0) { if (getuid() != 0) {
fprintf(stderr, "updatedraw test requires root, skipping\n"); fprintf(stderr, "updatedraw test requires root, skipping\n");