Skip to content

Use the constant PATH_MAX to size the array passed to _NSGetExecutablePath()#49

Merged
cwbaker merged 2 commits intomainfrom
use-const-array-for-executable-path-on-macos
Sep 3, 2025
Merged

Use the constant PATH_MAX to size the array passed to _NSGetExecutablePath()#49
cwbaker merged 2 commits intomainfrom
use-const-array-for-executable-path-on-macos

Conversation

@cwbaker
Copy link
Owner

@cwbaker cwbaker commented Sep 3, 2025

Latest macOS build is complaining that variable length arrays are a Clang extension that needs to be explicitly enabled. I'd rather the code be simpler so fixed by using PATH_MAX instead of dynamically sizing the array.

…ePath()

Latest macOS build is complaining that variable length arrays are a
Clang extension that needs to be explicitly enabled.  I'd rather the
code be simpler so fixed by using PATH_MAX instead of dynamically
sizing the array.
@cwbaker cwbaker self-assigned this Sep 3, 2025
This flag is no longer supported by Clang and it seems safer to remove
that than to allow non-conforming maths optimizations, I assume these
are algebraic manipulations that aren't necessarily true with floating
point.
@cwbaker cwbaker merged commit 401a8e0 into main Sep 3, 2025
3 checks passed
@cwbaker cwbaker deleted the use-const-array-for-executable-path-on-macos branch September 3, 2025 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant