tenox7 / ttyplot

a realtime plotting utility for terminal/console with data input from stdin
Apache License 2.0
961 stars 43 forks source link

Address warning `-Wstrict-prototypes` e.g. for Clang 16 #71

Closed hartwork closed 1 year ago

hartwork commented 1 year ago

Previously:

# CFLAGS='-std=gnu99 -pedantic' make CC=clang
clang -std=gnu99 -pedantic -Wall -Wextra    ttyplot.c  `pkg-config --libs ncurses` -o ttyplot
ttyplot.c:51:11: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void usage() {
          ^
           void
ttyplot.c:87:11: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void gethw() {
          ^
           void
ttyplot.c:142:16: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
void paint_plot() {
               ^
                void
3 warnings generated.
tenox7 commented 1 year ago

thank you