Skip to content

error: storing the address of local variable 'stackOut' in '*stackOut.0_1' [-Werror=dangling-pointer=] #256

Description

@topazus

I try to compile mps 1.118.0 with GCC 13 on Fedora 39, but I occured the build error.

lii6gc: lii6gc/cool/ss.o
ss.c: In function 'StackHot':
ss.c:38:13: error: storing the address of local variable 'stackOut' in '*stackOut.0_1' [-Werror=dangling-pointer=]
   38 |   *stackOut = &stackOut;
      |   ~~~~~~~~~~^~~~~~~~~~~
ss.c:36:22: note: 'stackOut' declared here
   36 | void StackHot(void **stackOut)
      |               ~~~~~~~^~~~~~~~
ss.c:36:22: note: 'stackOut' declared here
cc1: all warnings being treated as errors
gmake[3]: *** [comm.gmk:628: lii6gc/cool/ss.o] Error 1
gmake[3]: Leaving directory '/home/ruby/rpmbuild/BUILD/mps-release-1.118.0/code'
gmake[2]: *** [comm.gmk:398: target] Error 2
gmake[1]: *** [comm.gmk:370: mps.a] Error 2
gmake[1]: *** Waiting for unfinished jobs....

Activity

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

Metadata

Metadata

Assignees

Labels

buildProblems with builds and build automationessentialWill cause failure to meet customer requirements. Assign resources.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions