Make returning a local reference a compilation error (#25568)

* Make returning a local reference a compile error

* Bazel doesn't like return-local-addr
pull/25600/head
Lidi Zheng 4 years ago committed by GitHub
parent 39cc797025
commit 4e9206f48c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      tools/bazel.rc

@ -9,6 +9,7 @@ build:opt --compilation_mode=opt
build:opt --copt=-Wframe-larger-than=16384
build:dbg --compilation_mode=dbg
build:dbg --copt=-Werror=return-stack-address
build:windows_opt --compilation_mode=opt
build:windows_dbg --compilation_mode=dbg

Loading…
Cancel
Save