wmgtemp: Fix -Waggressive-loop-optimizations compiler warning.
commitbb4dd3f5c6cf9e87895adc97ef0d45bb0b35ee41
authorDoug Torrance <dtorrance@piedmont.edu>
Thu, 2 Feb 2017 02:51:58 +0000 (1 21:51 -0500)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 2 Feb 2017 13:33:12 +0000 (2 13:33 +0000)
tree2d64e29844d83d6abcdb347455b8d5f9a970ddab
parent84b7716e3d1b8521dbd19e1b60045ca634e5ec97
wmgtemp: Fix -Waggressive-loop-optimizations compiler warning.

In particular, the cpu_history array has length 59, so when i = 58,
cpu_history[i+1] is undefined.

From
http://sources.debian.net/src/wmgtemp/1.1-3/debian/patches/fix_-Waggressive-loop-optimizations.patch/
wmgtemp/src/wmgtemp.c