libevtr: Remove loop with undefined optimized behavior
authorJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 09:00:05 +0000 (10:00 +0100)
committerJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 09:06:05 +0000 (10:06 +0100)
commit92ca11d9df6c00c52dd039fd5090d399522f554e
treeec99d93fc9a55121bcefedcf8446c1f3190ac580
parent9829f236c5501b68ebe191cf451c6c88409cea40
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.
lib/libevtr/evtr.c