Wayne Thornton commented on a discussion on cpukit/dhrl/dhrl.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150646 > + > + switch ( ctx->active_config.data_size ) { > + case 1: > + (void) *(volatile uint8_t *) target_addr; > + break; > + case 2: > + (void) *(volatile uint16_t *) target_addr; > + break; > + case 4: > + (void) *(volatile uint32_t *) target_addr; > + break; > + case 8: > + (void) *(volatile uint64_t *) target_addr; > + break; > + default: > + continue; It's logically impossible for the code to ever reach this `default` case unless the internal memory structure is actively corrupted during runtime. I've added `rtems/score/basedefs.h` as an `#include' and set the 'default' case to 'RTEMS_UNREACHABLE()'. Will push in the next commit. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150646 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
