Unverified Commit 4624e8e1 authored by Maarten Baert's avatar Maarten Baert Committed by GitHub
Browse files

Don't return pointers to static objects with return_value_policy::take_ownership. (#3946)



* Don't return pointers to static objects with return_value_policy::take_ownership.

This fixes -Wfree-nonheap-object warnings produced by GCC.

* Use return value policy fix instead

Co-authored-by: default avatarAaron Gokaslan <skylion.aaron@gmail.com>
parent c42414db
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment