Eliminate warning from clang compilers.

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.
```
This commit is contained in:
Greg Sjaardema 2018-01-11 10:31:13 -07:00 committed by GitHub
parent 2281f3e133
commit 1b68ca28f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */