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/145
-- gerrit commit ac49319f38c6d8bd7d3a236b4b677e1e7470b0c7 Author: Ãyvind Harboe <oyvind.har...@zylin.com> Date: Mon Oct 31 22:03:49 2011 +0100 str9x: explain compiler that a local variable will always be initialized Change-Id: I9ddb2793b4cdbf6acea6f69973531491e4ebcc5b Signed-off-by: Ãyvind Harboe <oyvind.har...@zylin.com> diff --git a/src/flash/nor/str9x.c b/src/flash/nor/str9x.c index 61a438f..63cfd18 100644 --- a/src/flash/nor/str9x.c +++ b/src/flash/nor/str9x.c @@ -280,6 +280,9 @@ static int str9x_erase(struct flash_bank *bank, int first, int last) total_timeout = 1000; } + /* this is so the compiler can *know* */ + assert(total_timeout > 0); + for (i = first; i <= last; i++) { int retval; --
_______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development