Hello, I'm new on this forum, my name is Sjef, and I recently needed to migrate from the R8C to RL78. I'm using the e2studio environment and the RLCC compiler. I have a question about variable arguments, e.g. void printf(uint8_t *fmt, ...) { va_list va = NULL; uint8_t ch; uint16_t nr; va_start(va, fmt); while (*fmt) { ch = *fmt++; if (ch != '%') { put_char(ch); } else { ch = *fmt++; switch (ch) { case 'x': nr = va_arg(va, uint16_t); ... This produces a very peculiar warning: "W0523082:Pointer to the object of even alignment holds the odd address".. I'd think the compiler would take care of alignment? Do I need to take this warning seriously and do something about it? Does data have to be aligned at all? There is no mention in either Hardware or Software manual about this.. It's a real mystery. Any help greatly appreciated. Thanks, Sjef.
↧