Skip to content

Commit

Permalink
Add parantheses to assignment in condition (OSGeo#1274)
Browse files Browse the repository at this point in the history
Fixes -Wparentheses compiler warnings.
  • Loading branch information
nilason authored and ninsbl committed Feb 17, 2023
1 parent f4c05b4 commit 9c095a0
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 9c095a0

Please sign in to comment.