]> git.sur5r.net Git - openocd/commit
rtos: fix uninitialised variable warning
authorPaul Fertser <fercerpav@gmail.com>
Fri, 17 Jan 2014 10:08:07 +0000 (14:08 +0400)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 4 Feb 2014 21:17:24 +0000 (21:17 +0000)
commit164c543799a6bda0c4a6011f43d825930b36c7fe
treee6754b289feeeaf6817fc3e8ecfb0e06b4486887
parent47d4224d48199e700f7f685c7965a9864dde5f20
rtos: fix uninitialised variable warning

Breaks build with clang 3.3. This "addr" variable is actually always
ignored by next_symbol() when cur_symbol is an empty string but clang
can't (and probably shouldn't) prove that automatically.

Change-Id: Id030f1aa34b9d40b5fa20a422031511520e52669
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/1876
Tested-by: jenkins
Reviewed-by: Xiaofan <xiaofanc@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/rtos/rtos.c