I'm runnin sdcc 3.4.0 and targeting PIC18F45K50
I get this warning: main.c:670: warning 196: pointer target lost const qualifier from this: memcpypgm2ram(&hid_tx_buffer.uint8[0],get_toad4_config(),63); with these defs: __code void* get_toad4_config(); volatile hid_buffer_t hid_tx_buffer; this however does not produce any warning: memcpyram2ram(&hid_tx_buffer.uint8[0], &g_toad4_status.steppers[0],8); so I'm thinking it is the get_toad4_config() that produces the warning. I don't get it. Also slightly related: I get this: ../obj/main.asm:3683:Error[154] Each object file section must be contiguous: ".code" ../obj/main.asm:3683:Error[116] Address label duplicated or different in second pass: "_g_toad4_config" Error[181] System error while writing object file. if I have anything like this: __code int g_toad4_config = {0}; in my main.c but not if I have it in any other source file. confused, Kusti ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user