git: libevtr: Remove loop with undefined optimized behavior
John Marino
marino at crater.dragonflybsd.org
Tue Feb 10 01:07:19 PST 2015
commit 92ca11d9df6c00c52dd039fd5090d399522f554e
Author: John Marino <draco at marino.st>
Date: Tue Feb 10 10:00:05 2015 +0100
libevtr: Remove loop with undefined optimized behavior
Starting with gcc 4.8 I believe, one particular loop in evtr.c fails to
compile. The error is "interation 3u involved undefined behavior
[-Werror=aggressive-loop-optimizations]".
No alternative I tried worked, so I finally just removed the loop since
it only iterates 4 times. It's brute force but the code is correct.
Summary of changes:
lib/libevtr/evtr.c | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/92ca11d9df6c00c52dd039fd5090d399522f554e
--
DragonFly BSD source repository
More information about the Commits
mailing list