diff options
author | Pedro Giffuni <pfg@apache.org> | 2016-04-10 02:27:05 +0000 |
---|---|---|
committer | Pedro Giffuni <pfg@apache.org> | 2016-04-10 02:27:05 +0000 |
commit | aaf15142bcbc44f0e06a3357d2b21ecf9c673d21 (patch) | |
tree | c72059f89d1e6b3ddf6dbe6da939ec1dd12aa79f | |
parent | 10458a24f4e6cc311e65fb80ce576fed39937be2 (diff) |
Drop redundant parenthesis.
Found with coccinelle: http://coccinelle.lip6.fr/
Currently only applied to C code.
Notes
Notes:
merged as: 429a15cc292a92c2f00be6febde7da66ed792b70
-rw-r--r-- | rsc/source/rscpp/cpp5.c | 2 | ||||
-rw-r--r-- | sal/textenc/tencinfo.c | 2 | ||||
-rw-r--r-- | soltools/cpp/_lex.c | 2 | ||||
-rw-r--r-- | soltools/mkdepend/main.c | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/rsc/source/rscpp/cpp5.c b/rsc/source/rscpp/cpp5.c index 41f42ebf0dfb..e75e8f91a51d 100644 --- a/rsc/source/rscpp/cpp5.c +++ b/rsc/source/rscpp/cpp5.c @@ -240,7 +240,7 @@ eval() opp->prec = opdope[OP_END]; /* And its precedence */ opp->skip = 0; /* Not skipping now */ binop = 0; -again: ; +again: #ifdef DEBUG_EVAL fprintf( pCppOut, "In #if at again: skip = %d, binop = %d, line is: %s", opp->skip, binop, infile->bptr); diff --git a/sal/textenc/tencinfo.c b/sal/textenc/tencinfo.c index f9d8b5fbdd0f..5a4b1fdb39c9 100644 --- a/sal/textenc/tencinfo.c +++ b/sal/textenc/tencinfo.c @@ -201,7 +201,7 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromWindowsCharset( sal_uInt8 nWinC case 238: eTextEncoding = RTL_TEXTENCODING_MS_1250; break; /* EASTEUROPE_CHARSET */ case 255: eTextEncoding = RTL_TEXTENCODING_IBM_850; break; /* OEM_CHARSET */ default: eTextEncoding = RTL_TEXTENCODING_DONTKNOW; break; - }; + } return eTextEncoding; } diff --git a/soltools/cpp/_lex.c b/soltools/cpp/_lex.c index 6014c1460cc3..02637ff5c73c 100644 --- a/soltools/cpp/_lex.c +++ b/soltools/cpp/_lex.c @@ -535,7 +535,7 @@ continue2: else { runelen = 1; - s->lineinc = 0;; + s->lineinc = 0; tp->type = COMMENT; tp->flag |= XTWS; } diff --git a/soltools/mkdepend/main.c b/soltools/mkdepend/main.c index cf5c42c14bdf..121d21f7eb54 100644 --- a/soltools/mkdepend/main.c +++ b/soltools/mkdepend/main.c @@ -633,9 +633,9 @@ char *base_name(file) if ( *p == '/' || *p == '\\') { file = p + 1; break; - }; + } p--; - }; + } return(file); } @@ -774,7 +774,7 @@ void convert_slashes(path) for (ptr = (char*)path; *ptr; ++ptr) if (*ptr == '\\') *ptr = '/'; - }; + } #else (void)path; #endif @@ -793,7 +793,7 @@ char* append_slash(path) strcat(new_string, "\\"); else strcat(new_string, "/"); - }; + } return new_string; } |