Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build in infback9 on MacOS and unity builds #11621

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

rouault
Copy link
Member

@rouault rouault commented Jan 9, 2025

Fixes https://github.com/OSGeo/gdal/actions/runs/12695906104/job/35388828521?pr=11609

 In file included from /Users/runner/work/gdal/gdal/frmts/zlib/contrib/infback9/infback9.c:6:
/Users/runner/work/gdal/gdal/frmts/zlib/contrib/infback9/minified_zutil.h:175:11: error: 'OS_CODE' macro redefined [-Werror,-Wmacro-redefined]
[  5%] Building CXX object apps/CMakeFiles/appslib.dir/Unity/unity_3_cxx.cxx.o
  175 | #  define OS_CODE 19
      |           ^
/Users/runner/work/gdal/gdal/frmts/zlib/contrib/infback9/minified_zutil.h:146:11: note: previous definition is here
  146 | #  define OS_CODE  7
      |           ^

Fixes https://github.com/OSGeo/gdal/actions/runs/12695906104/job/35388828521?pr=11609
```
 In file included from /Users/runner/work/gdal/gdal/frmts/zlib/contrib/infback9/infback9.c:6:
/Users/runner/work/gdal/gdal/frmts/zlib/contrib/infback9/minified_zutil.h:175:11: error: 'OS_CODE' macro redefined [-Werror,-Wmacro-redefined]
[  5%] Building CXX object apps/CMakeFiles/appslib.dir/Unity/unity_3_cxx.cxx.o
  175 | #  define OS_CODE 19
      |           ^
/Users/runner/work/gdal/gdal/frmts/zlib/contrib/infback9/minified_zutil.h:146:11: note: previous definition is here
  146 | #  define OS_CODE  7
      |           ^
```
@rouault rouault added the backport release/3.10 Backport to release/3.10 branch label Jan 9, 2025
@rouault rouault added the funded through GSP Work funded through the GDAL Sponsorship Program label Jan 9, 2025
@rouault rouault merged commit 64b2347 into OSGeo:master Jan 9, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release/3.10 Backport to release/3.10 branch funded through GSP Work funded through the GDAL Sponsorship Program
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant