Skip to content

Commit

Permalink
Eliminate warning from clang compilers.
Browse files Browse the repository at this point in the history
Eliminate this warning from clang:
```
TPL/netcdf/netcdf-c/libdispatch/ncuri.c:914:31: warning: for loop has empty body [-Wempty-body]
        for(p=sp,q=sp+1;(*p++=*q++););
                                     ^
TPL/netcdf/netcdf-c/libdispatch/ncuri.c:914:31: note: put the semicolon on a separate line to silence this warning
1 warning generated.
```
  • Loading branch information
gsjaardema authored Jan 11, 2018
1 parent 2281f3e commit 1b68ca2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libdispatch/ncuri.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,8 @@ collectprefixparams(char* text, char** nextp)
for(;;) {
char* p; char* q;
/* by construction, here we are at an LBRACKET: compress it out */
for(p=sp,q=sp+1;(*p++=*q++););
for(p=sp,q=sp+1;(*p++=*q++);)
;
/* locate the next RRACKET */
ep = nclocate(sp,RBRACKETSTR);
if(ep == NULL) break;/* we are done */
Expand Down

0 comments on commit 1b68ca2

Please sign in to comment.