cdump: fix uninitialized warning with optimization
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 25 Oct 2016 04:07:00 +0000 (14:37 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 25 Oct 2016 04:07:00 +0000 (14:37 +1030)
commite589d16bb2fd92366c02217d5ba6ca6a77ac3515
treecc49448ebf0f42016cb5a390c0e466d8d66cfea4
parent280c917d1d3c8e79c1296bd867a0dd4b727c55dc
cdump: fix uninitialized warning with optimization

/home/rusty/devel/cvs/ccan/ccan/cdump/cdump.c: In function ‘get_type’:
/home/rusty/devel/cvs/ccan/ccan/strmap/strmap.h:88:39: warning: ‘m’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  tcon_cast((map), canary, strmap_get_(&(map)->raw, (member)))
                                       ^
/home/rusty/devel/cvs/ccan/ccan/cdump/cdump.c:216:20: note: ‘m’ was declared here
  cdump_map_t *m;
               ^

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/cdump/cdump.c