PeterBLITZ / m2tklib

Automatically exported from code.google.com/p/m2tklib
0 stars 0 forks source link

M2_LIST --> warning when & is used #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
by redefining the ptr-list argument in the element structures, it should be 
possible to emit
warning: initialization from incompatible pointer type
(error in C++)

if the "&" is used on the list.

instead of the current
  m2_rom_void_p el_list;
use
  m2_rom_void_p *el_list;

current definition is:
#define M2_PROGMEM PROGMEM
typedef void m2_rom_void M2_PROGMEM;
typedef const m2_rom_void *m2_rom_void_p;

Original issue reported on code.google.com by olikr...@gmail.com on 12 Jul 2011 at 9:56

GoogleCodeExporter commented 8 years ago
done

Original comment by olikr...@gmail.com on 12 Jul 2011 at 10:16

GoogleCodeExporter commented 8 years ago

Original comment by olikr...@gmail.com on 12 Jul 2011 at 10:16