--- intel/intel_bufmgr_gem.c | 3 +-- tests/lock.c | 2 +- tests/name_from_fd.c | 3 +-- tests/ttmtest/src/ttmtest.c | 2 +- tests/updatedraw.c | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index 12a3197..57319fb 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -2845,9 +2845,8 @@ drm_intel_gem_context_create(drm_intel_bufmgr *bufmgr) { drm_intel_bufmgr_gem *bufmgr_gem = (drm_intel_bufmgr_gem *)bufmgr; struct drm_i915_gem_context_create create; - drm_i915_getparam_t gp; drm_intel_context *context = NULL; - int tmp = 0, ret; + int ret; ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_CONTEXT_CREATE, &create); if (ret != 0) { diff --git a/tests/lock.c b/tests/lock.c index 86caa28..a6704f2 100644 --- a/tests/lock.c +++ b/tests/lock.c @@ -205,7 +205,7 @@ static void client() static void server() { - int drmfd, tempfd, ret; + int drmfd, ret; unsigned int client_time, unlock_time; drmfd = drm_open_any_master(); diff --git a/tests/name_from_fd.c b/tests/name_from_fd.c index 330c8ff..4813557 100644 --- a/tests/name_from_fd.c +++ b/tests/name_from_fd.c @@ -39,8 +39,7 @@ */ int main(int argc, char **argv) { - int fd, ret; - drm_set_version_t sv, version; + int fd; const char *name = "/dev/dri/card0"; char *v; diff --git a/tests/ttmtest/src/ttmtest.c b/tests/ttmtest/src/ttmtest.c index 36df242..c94e940 100644 --- a/tests/ttmtest/src/ttmtest.c +++ b/tests/ttmtest/src/ttmtest.c @@ -347,7 +347,7 @@ testAGP(TinyDRIContext * ctx) int main() { - int ret, screen, isCapable; + int ret, isCapable; char *displayName = ":0"; TinyDRIContext ctx; unsigned magic; diff --git a/tests/updatedraw.c b/tests/updatedraw.c index a61eb15..0922740 100644 --- a/tests/updatedraw.c +++ b/tests/updatedraw.c @@ -121,7 +121,7 @@ static int rm_drawable(int fd, int drawable, int fail) */ int main(int argc, char **argv) { - int fd, ret, d1, d2; + int fd, d1, d2; if (getuid() != 0) { fprintf(stderr, "updatedraw test requires root, skipping\n"); -- 1.7.10.4 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel