This is an automated email from Gerrit. Ãyvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/42
-- gerrit commit d5d891eaeff5c4484b2858e90ece1f2ce312c097 Author: Ãyvind Harboe <oyvind.har...@zylin.com> Date: Fri Oct 21 19:14:57 2011 +0200 clang: fix warning w/assert so that clang knows that there will be no division by zero Change-Id: I98ac62a22f21043bb535a667a4f1f1537ccde2a4 Signed-off-by: Ãyvind Harboe <oyvind.har...@zylin.com> diff --git a/src/target/target.c b/src/target/target.c index b68eee3..d4cb577 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -3317,7 +3317,8 @@ static void writeGmon(uint32_t *samples, uint32_t sampleNum, const char *filenam } } - int addressSpace = (max-min + 1); + int addressSpace = (max - min + 1); + assert(addressSpace >= 2); static const uint32_t maxBuckets = 16 * 1024; /* maximum buckets. */ uint32_t length = addressSpace; --
_______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development