Skip to content

Conversation

@nilason
Copy link
Contributor

@nilason nilason commented Jul 31, 2024

The true if-statement only handles buffers with rounded corners. E.g. using v.buffer without -s on points. GEOS handles buffers with corners.

Building with Clang 18 a compiler warning is issued:

buffer2.c:1153:15: error: '||' of a value and its negation always evaluates to true [-Werror,-Wtautological-negation-compare]
 1153 |     if (round || (!round)) {
      |         ~~~~~~^~~~~~~~~~~

which in combination with -Werror causes build failure.

(Part of preparation for upgrading dependencies for the macOS CI runner).

The true if-statement only handles buffers with rounded corners.
E.g. using `v.buffer` without `-s` on points. GEOS handles buffers
with corners.
@nilason nilason added this to the 8.5.0 milestone Jul 31, 2024
@nilason nilason self-assigned this Jul 31, 2024
@github-actions github-actions bot added vector Related to vector data processing C Related code is in C libraries labels Jul 31, 2024
@nilason nilason merged commit 78490a2 into OSGeo:main Jul 31, 2024
@nilason nilason deleted the fix_libvector_buffer branch July 31, 2024 13:54
@neteler neteler modified the milestone: 8.5.0 Jul 31, 2024
Mahesh1998 pushed a commit to Mahesh1998/grass that referenced this pull request Sep 19, 2024
…eo#4115)

The true if-statement only handles buffers with rounded corners.
E.g. using `v.buffer` without `-s` on points. GEOS handles buffers
with corners.
@nilason nilason added the backport to 8.4 PR needs to be backported to release branch 8.4 label Nov 5, 2024
@nilason
Copy link
Contributor Author

nilason commented Nov 5, 2024

This is needed for the CI runner in 8.4 branch to succeed. Any objections to backport?

neteler pushed a commit that referenced this pull request Nov 6, 2024
The true if-statement only handles buffers with rounded corners.
E.g. using `v.buffer` without `-s` on points. GEOS handles buffers
with corners.
@neteler
Copy link
Member

neteler commented Nov 6, 2024

This is needed for the CI runner in 8.4 branch to succeed. Any objections to backport?

I have backported it.

@neteler neteler removed the backport to 8.4 PR needs to be backported to release branch 8.4 label Nov 6, 2024
@neteler neteler modified the milestones: 8.5.0, 8.4.1 Nov 6, 2024
@nilason
Copy link
Contributor Author

nilason commented Nov 6, 2024

This is needed for the CI runner in 8.4 branch to succeed. Any objections to backport?

I have backported it.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C Related code is in C libraries vector Related to vector data processing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants