mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
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:
parent
2281f3e133
commit
1b68ca28f7
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user