Skip to content

Commit

Permalink
Warning fixes using clang
Browse files Browse the repository at this point in the history
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
  • Loading branch information
wsfulton committed Apr 29, 2012
1 parent 127e772 commit 8bf1347
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/DOH/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ int DohEqual(const DOH *obj1, const DOH *obj2) {

if (!b1info) {
return obj1 == obj2;
} else if ((b1info == b2info)) {
} else if (b1info == b2info) {
return b1info->doh_equal ? (b1info->doh_equal) (b1, b2) : (b1info->doh_cmp ? (b1info->doh_cmp) (b1, b2) == 0 : (b1 == b2));
} else {
return 0;
Expand Down
2 changes: 1 addition & 1 deletion Source/Modules/d.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4602,7 +4602,7 @@ class D : public Language {
co = c + Len(nspace);

while (*c && (c != co)) {
if ((*c == '.')) {
if (*c == '.') {
break;
}
c++;
Expand Down
6 changes: 3 additions & 3 deletions Source/Preprocessor/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,16 +298,16 @@ int Preprocessor_expr(DOH *s, int *error) {
stack[sp++].op = EXPR_OP;
stack[sp].op = EXPR_TOP;
stack[sp].svalue = 0;
} else if ((token == SWIG_TOKEN_LPAREN)) {
} else if (token == SWIG_TOKEN_LPAREN) {
stack[sp++].op = EXPR_GROUP;
stack[sp].op = EXPR_TOP;
stack[sp].value = 0;
stack[sp].svalue = 0;
} else if (token == SWIG_TOKEN_ENDLINE) {
} else if ((token == SWIG_TOKEN_STRING)) {
} else if (token == SWIG_TOKEN_STRING) {
stack[sp].svalue = NewString(Scanner_text(scan));
stack[sp].op = EXPR_VALUE;
} else if ((token == SWIG_TOKEN_ID)) {
} else if (token == SWIG_TOKEN_ID) {
stack[sp].value = 0;
stack[sp].svalue = 0;
stack[sp].op = EXPR_VALUE;
Expand Down

0 comments on commit 8bf1347

Please sign in to comment.