Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ option(USE_GETTEXT "Enable interantionalization" OFF)
add_compile_options(-Wall -pedantic -Wextra)
add_compile_options(-Werror=unused-label)
add_compile_options(-Werror=unused-parameter)
add_compile_options(-Werror=strict-prototypes)

set(SOURCES
colors.c
Expand Down
4 changes: 2 additions & 2 deletions error.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ void set_error(const char *fmt, ...)
va_end(ap);
}

void clear_error()
void clear_error(void)
{
last_error[0] = 0x00;
}

char * get_error()
char * get_error(void)
{
return last_error;
}
6 changes: 3 additions & 3 deletions nc.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ void draw_rad_column(WINDOW *win, int x, double val)
}
}

double get_cur_scc()
double get_cur_scc(void)
{
double scc_val = 0.0;
double prev_val = 0.0, u0 = 0.0;
Expand Down Expand Up @@ -593,7 +593,7 @@ void draw_fft(void)
}
#endif

double calc_trend()
double calc_trend(void)
{
int half = history_n / 2, index = 0;
double v1 = 0.0, v2 = 0.0;
Expand Down Expand Up @@ -626,7 +626,7 @@ double calc_trend()
return (v1 - v2) / (v2 / 100.0);
}

void draw_graph()
void draw_graph(void)
{
int index = 0, loop_n = min(max_x, history_n), n = 0, n2 = 0;
double avg = 0, sd = 0;
Expand Down
Loading