Skip to content
Commit 98cf437d authored by Stephan Linz's avatar Stephan Linz Committed by Benjamin Cabé
Browse files

drivers: sensor: maxim,ds3231: avoid compilation error



As the C language treats 'cases' similar to 'labels' the following
error can also occur when using switch statements when it encounters
a declaration immediately after a label:

drivers/sensor/maxim/ds3231/ds3231.c:77:3: error: a label can only
        be part of a statement and a declaration is not a statement
   77 |   const uint16_t raw_temp = data->raw_temp;
      |   ^~~~~

Signed-off-by: default avatarStephan Linz <linz@li-pro.net>
parent cca20534
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment