From: Antonio Borneo Date: Sun, 23 Oct 2011 03:21:44 +0000 (+0800) Subject: FLASH/CFI: fix clang warnings X-Git-Tag: v0.6.0-rc1~509 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=343204927656561dd3deec52c58c13ef2de4f60b;hp=343204927656561dd3deec52c58c13ef2de4f60b FLASH/CFI: fix clang warnings Total of 5 warnings: 3x "Dead store": removed dead assignment to variable; 1x "Dereference of null pointer": this is not an error, but a limited visibility of clang, since pointer erase_region_info is initialized inside cfi_fixup_non_cfi(); 1x "Branch condition evaluates to a garbage value": this is a real coding bug that could issue SIGSEGV, since "goto cleanup" can be executed before initialization of "source". Change-Id: Id3c323c82bb15cbd3bb8fc04b23541f11145f109 Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/84 Tested-by: jenkins Reviewed-by: Øyvind Harboe ---