Skip to content

build warning on macOS 15.7.1: variable length array folded to constant array as an extension #24

Description

@NoskyOrg

Yesterday I upgraded the macOS system, then I found this warning.
Could this be a C language specification issue?

My machine: MacBook Pro 13-inch, M1, 2020

go build

# github.com/shoenig/go-m1cpu
../../../../pkg/mod/github.com/shoenig/go-m1cpu@v0.1.6/cpu.go:75:17: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
../../../../pkg/mod/github.com/shoenig/go-m1cpu@v0.1.6/cpu.go:77:16: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions