summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrandogoth <kflux@posteo.de>2023-05-18 14:44:50 +0300
committerGitHub <noreply@github.com>2023-05-18 07:44:50 -0400
commitd348482759bcd53cd59b40cdc3930c15f6f9f634 (patch)
tree2683b10fa3986b51fd8141394e2386991b295cb6
parent9916e75e9b940bb5ea9454df98faa5befe9c910f (diff)
downloadSensor-Watch-d348482759bcd53cd59b40cdc3930c15f6f9f634.tar.gz
Sensor-Watch-d348482759bcd53cd59b40cdc3930c15f6f9f634.tar.bz2
Sensor-Watch-d348482759bcd53cd59b40cdc3930c15f6f9f634.zip
geomancy.c warnings fix (#240)
-rw-r--r--movement/watch_faces/complication/geomancy_face.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/movement/watch_faces/complication/geomancy_face.c b/movement/watch_faces/complication/geomancy_face.c
index c741b2d7..5928f50d 100644
--- a/movement/watch_faces/complication/geomancy_face.c
+++ b/movement/watch_faces/complication/geomancy_face.c
@@ -60,10 +60,10 @@ static const char figures[16][2] = {
// DECLARATIONS ///////////////////////////////////////////////////////////////
-static void geomancy_face_display();
-static nibble_t _geomancy_pick_figure();
-static tribble_t _iching_pick_trigram();
-static uint8_t _iching_form_hexagram();
+static void geomancy_face_display(geomancy_state_t *state);
+static nibble_t _geomancy_pick_figure(void);
+static tribble_t _iching_pick_trigram(void);
+static uint8_t _iching_form_hexagram(void);
static void _geomancy_display(nibble_t code);
static void _display_hexagram(uint8_t hexagram, char* str);
static void _fix_broken_line(uint8_t hexagram);
@@ -150,7 +150,6 @@ void geomancy_face_resign(movement_settings_t *settings, void *context) {
// STATIC FUNCTIONS ///////////////////////////////////////////////////////////
/** @brief display handler */
-static void geomancy_face_display(geomancy_state_t *state);
static void geomancy_face_display(geomancy_state_t *state) {
char token[7] = {0};
nibble_t figure = *((nibble_t*) &state->geomantic_figure);