Author: pfg
Date: Sun Apr 10 02:27:05 2016
New Revision: 1738403

URL: http://svn.apache.org/viewvc?rev=1738403&view=rev
Log:
Drop redundant parenthesis.

Found with coccinelle:  http://coccinelle.lip6.fr/

Currently only applied to C code.

Modified:
    openoffice/trunk/main/rsc/source/rscpp/cpp5.c
    openoffice/trunk/main/sal/textenc/tencinfo.c
    openoffice/trunk/main/soltools/cpp/_lex.c
    openoffice/trunk/main/soltools/mkdepend/main.c

Modified: openoffice/trunk/main/rsc/source/rscpp/cpp5.c
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/rsc/source/rscpp/cpp5.c?rev=1738403&r1=1738402&r2=1738403&view=diff
==============================================================================
--- openoffice/trunk/main/rsc/source/rscpp/cpp5.c (original)
+++ openoffice/trunk/main/rsc/source/rscpp/cpp5.c Sun Apr 10 02:27:05 2016
@@ -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);

Modified: openoffice/trunk/main/sal/textenc/tencinfo.c
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sal/textenc/tencinfo.c?rev=1738403&r1=1738402&r2=1738403&view=diff
==============================================================================
--- openoffice/trunk/main/sal/textenc/tencinfo.c (original)
+++ openoffice/trunk/main/sal/textenc/tencinfo.c Sun Apr 10 02:27:05 2016
@@ -201,7 +201,7 @@ rtl_TextEncoding SAL_CALL rtl_getTextEnc
         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;
 }

Modified: openoffice/trunk/main/soltools/cpp/_lex.c
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/soltools/cpp/_lex.c?rev=1738403&r1=1738402&r2=1738403&view=diff
==============================================================================
--- openoffice/trunk/main/soltools/cpp/_lex.c (original)
+++ openoffice/trunk/main/soltools/cpp/_lex.c Sun Apr 10 02:27:05 2016
@@ -535,7 +535,7 @@ continue2:
                                        else
                                        {
                            runelen = 1;
-                        s->lineinc = 0;;
+                        s->lineinc = 0;
                         tp->type = COMMENT;
                                                tp->flag |= XTWS;
                                        }

Modified: openoffice/trunk/main/soltools/mkdepend/main.c
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/soltools/mkdepend/main.c?rev=1738403&r1=1738402&r2=1738403&view=diff
==============================================================================
--- openoffice/trunk/main/soltools/mkdepend/main.c (original)
+++ openoffice/trunk/main/soltools/mkdepend/main.c Sun Apr 10 02:27:05 2016
@@ -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;
 }
 


Reply via email to