~hecanjog/pippi

7880801964c0d3b73577187eb60a8646a51181ff — Erik Schoster a month ago 79a24bb
Add unused warnings to signal handlers
3 files changed, 2 insertions(+), 2 deletions(-)

M banner.png
M libpippi/src/adc.c
M libpippi/src/dac.c
M banner.png => banner.png +0 -0
M libpippi/src/adc.c => libpippi/src/adc.c +1 -1
@@ 17,7 17,7 @@
static volatile int adc_is_running = 1;
static volatile int adc_is_capturing = 1;

void handle_shutdown(int) {
void handle_shutdown(int sig __attribute__((unused))) {
    adc_is_capturing = 0;
    adc_is_running = 0;
}

M libpippi/src/dac.c => libpippi/src/dac.c +1 -1
@@ 17,7 17,7 @@ int astrid_channels = 2;
lpscheduler_t * astrid_scheduler;

/* Callback for SIGINT */
void handle_shutdown(int) {
void handle_shutdown(int sig __attribute__((unused))) {
    astrid_is_running = 0;
}