summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2010-07-09 16:37:52 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2010-07-09 16:37:52 -0300
commit3d2389c337847c833e75c095123ba7705a66f6de (patch)
tree7ed9e193a759b34d6c9eec37102547004d96e86b
parent6433a5535662753aedd95759000cd354dd8e3fba (diff)
downloadmariadb-git-3d2389c337847c833e75c095123ba7705a66f6de.tar.gz
Use UNINIT_VAR workaround instead of LINT_INIT.
-rw-r--r--client/mysqlshow.c3
-rw-r--r--regex/regcomp.c6
2 files changed, 4 insertions, 5 deletions
diff --git a/client/mysqlshow.c b/client/mysqlshow.c
index 2f5582cb668..8c64d61ded2 100644
--- a/client/mysqlshow.c
+++ b/client/mysqlshow.c
@@ -669,8 +669,7 @@ list_fields(MYSQL *mysql,const char *db,const char *table,
char query[1024],*end;
MYSQL_RES *result;
MYSQL_ROW row;
- ulong rows;
- LINT_INIT(rows);
+ ulong UNINIT_VAR(rows);
if (mysql_select_db(mysql,db))
{
diff --git a/regex/regcomp.c b/regex/regcomp.c
index 8280fbfd6c8..81c435ed552 100644
--- a/regex/regcomp.c
+++ b/regex/regcomp.c
@@ -1563,13 +1563,13 @@ struct parse *p;
register struct re_guts *g;
{
register sop *scan;
- sop *start;
- register sop *newstart;
+ sop *UNINIT_VAR(start);
+ register sop *UNINIT_VAR(newstart);
register sopno newlen;
register sop s;
register char *cp;
register sopno i;
- LINT_INIT(start); LINT_INIT(newstart);
+
/* avoid making error situations worse */
if (p->error != 0)
return;