Skip to content

Commit

Permalink
Fix 'defined but not used' -Werror on newer GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
Circuitsoft committed Oct 15, 2017
1 parent 4464c21 commit fd46e26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ static void delay_to_heartbeat();
static uint8_t debug_counter;
static uint8_t debug_register[DEBUG_REGISTER_SIZE];

static void add_value_to_debug_register(uint8_t value) {
static void __attribute__((unused)) add_value_to_debug_register(uint8_t value) {
debug_register[debug_counter % DEBUG_REGISTER_SIZE] = value;
debug_counter++;
}
static void report_debug_register() {
static void __attribute__((unused)) report_debug_register() {
rbc_mesh_value_set(DEBUG_REGISTER_HANDLE, debug_register, DEBUG_REGISTER_SIZE);
}

Expand Down

0 comments on commit fd46e26

Please sign in to comment.