[Libreoffice-commits] core.git: idlc/source l10ntools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Feb 28 07:24:59 UTC 2019
idlc/source/scanner.l | 6 +++---
l10ntools/source/cfglex.l | 4 ++--
l10ntools/source/xrmlex.l | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
New commits:
commit 846a91faad76e274ea059ecc1e480d5ff7bf44dd
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Feb 27 10:23:46 2019 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Feb 28 08:24:32 2019 +0100
loplugin:externvar
Change-Id: I7f09837e76a8368fd60aed1bb3a16fd0434e11ec
Reviewed-on: https://gerrit.libreoffice.org/68466
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l
index 40f3670f78f5..cf018ec21567 100644
--- a/idlc/source/scanner.l
+++ b/idlc/source/scanner.l
@@ -53,13 +53,13 @@ class AstMember;
#include <parser.hxx>
/* handle locations */
-int yycolumn = 1;
+static int yycolumn = 1;
#define YY_USER_ACTION idlc()->setOffset(yycolumn, yycolumn+yyleng-1); \
yycolumn += yyleng;
-sal_Int32 beginLine = 0;
-OString docu;
+static sal_Int32 beginLine = 0;
+static OString docu;
static int asciiToInteger(char const * s, sal_Int64 * sval, sal_uInt64 * uval) {
bool neg = false;
diff --git a/l10ntools/source/cfglex.l b/l10ntools/source/cfglex.l
index f8afa3f82607..50f22421a027 100644
--- a/l10ntools/source/cfglex.l
+++ b/l10ntools/source/cfglex.l
@@ -48,10 +48,10 @@
#define YY_NO_UNISTD_H
-int yycolumn = 1;
+static int yycolumn = 1;
#define YY_USER_ACTION yycolumn += yyleng;
-int bText=0;
+static int bText=0;
%}
%option yylineno
diff --git a/l10ntools/source/xrmlex.l b/l10ntools/source/xrmlex.l
index c5ab75a14a5a..8ecd4c0cec78 100644
--- a/l10ntools/source/xrmlex.l
+++ b/l10ntools/source/xrmlex.l
@@ -50,7 +50,7 @@
/* forwards */
void YYWarning();
-int bText=0;
+static int bText=0;
%}
%option yylineno
More information about the Libreoffice-commits
mailing list