Skip to content

Commit

Permalink
Add parantheses to assignment in condition (#1274)
Browse files Browse the repository at this point in the history
Fixes -Wparentheses compiler warnings.
  • Loading branch information
nilason committed Feb 27, 2021
1 parent 9b940ea commit 1e582d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dspf/cube_io.c
Expand Up @@ -171,7 +171,7 @@ int read_cube(Cube_data * Cube, file_info * headfax)
break;
}

for (i = 0; ret = fread(fptr + i, 1, 10240, fp); i += ret) ;
for (i = 0; (ret = fread(fptr + i, 1, 10240, fp)); i += ret) ;
}

if (zeros_left) {
Expand Down
2 changes: 1 addition & 1 deletion raster/r.in.gridatb/file_io.c
Expand Up @@ -28,7 +28,7 @@ void rdwr_gridatb(void)
cellhd.format = -1;
cellhd.compressed = 1;

if (retval = adjcellhd(&cellhd)) {
if ((retval = adjcellhd(&cellhd))) {
fclose(fp);
switch (retval) {
case 1:
Expand Down

0 comments on commit 1e582d4

Please sign in to comment.