diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-10-06 18:15:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-10-06 18:15:54 +0200 |
commit | 59accebda6a29307d8be9bc9be0c9fab141b4148 (patch) | |
tree | c7f1e58047d3647151fd432bd6b9f066a28bcf8c /rsc | |
parent | 99c48d6cc739fd542b33023e1ef51db3df169586 (diff) |
warning C4101: unreferenced local variable
Change-Id: I526e68b93f9665db25a824cc44ff231bcef29277
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/rscpp/cpp2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rsc/source/rscpp/cpp2.c b/rsc/source/rscpp/cpp2.c index f082275f227c..a0f3433dc4e5 100644 --- a/rsc/source/rscpp/cpp2.c +++ b/rsc/source/rscpp/cpp2.c @@ -415,8 +415,6 @@ FILE_LOCAL int openinclude(char* filename, int searchlocal) { char** incptr; char tmpname[NFWORK]; /* Filename work area */ - int len; - int len2; if (searchlocal) { @@ -431,8 +429,8 @@ FILE_LOCAL int openinclude(char* filename, int searchlocal) if (filename[0] != '/' && hasdirectory(infile->filename, tmpname, NFWORK)) { - len = strlen(tmpname); - len2 = strlen(filename); + int len = strlen(tmpname); + int len2 = strlen(filename); if(len + len2 < NFWORK) { memcpy(tmpname + len, filename, len2); @@ -445,7 +443,7 @@ FILE_LOCAL int openinclude(char* filename, int searchlocal) } else { - len = strlen(filename); + int len = strlen(filename); if(len < NFWORK) { memcpy(tmpname, filename, len); @@ -534,6 +532,8 @@ FILE_LOCAL int hasdirectory(char* source, char* result, int max) */ char* tp; + (void)max; + if ((tp = strrchr(source, ']')) == NULL && (tp = strrchr(source, ':')) == NULL) { |