aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRyan Libby <rlibby@FreeBSD.org>2020-12-27 22:33:13 +0000
committerRyan Libby <rlibby@FreeBSD.org>2020-12-27 22:33:13 +0000
commitf2d48b5e2c3b45850585e4d7aee324fe148afbf2 (patch)
tree575fd83a58075e72409549a59660856616726ab9 /contrib
parent21ce674e3c7e9dad485b0d84634616f0b535a17f (diff)
downloadsrc-f2d48b5e2c3b45850585e4d7aee324fe148afbf2.tar.gz
src-f2d48b5e2c3b45850585e4d7aee324fe148afbf2.zip
Merge commit d8a09b3a0 from openzfs git (by Ryan Libby):
lua: avoid gcc -Wreturn-local-addr bug Avoid a bug with gcc's -Wreturn-local-addr warning with some obfuscation. In buggy versions of gcc, if a return value is an expression that involves the address of a local variable, and even if that address is legally converted to a non-pointer type, a warning may be emitted and the value of the address may be replaced with zero. Howerver, buggy versions don't emit the warning or replace the value when simply returning a local variable of non-pointer type. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90737 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Libby <rlibby@FreeBSD.org> Closes #11337
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions