From: Brian Paul Date: Wed, 28 Sep 2011 19:16:45 +0000 (-0600) Subject: mesa: fix signed/unsigned sscanf() warning in _mesa_override_glsl_version() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b79782cbedf8b23ea392d9a597eb4831a605bbe0;p=mesa.git mesa: fix signed/unsigned sscanf() warning in _mesa_override_glsl_version() --- diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 665b0e7ad28..c497317473d 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -68,7 +68,7 @@ _mesa_override_glsl_version(struct gl_context *ctx) return; } - n = sscanf(version, "%d", &ctx->Const.GLSLVersion); + n = sscanf(version, "%u", &ctx->Const.GLSLVersion); if (n != 1) { fprintf(stderr, "error: invalid value for %s: %s\n", env_var, version); return;