gianfrdp/SDM120C

function declaration isn’t a prototype [-Wstrict-prototypes]

Opened this issue · 0 comments

When compiled with -Wstrict-prototypes (that will be the default of the newer versions of compilers) we have:

sdm120c.c:214:7: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
  214 | char* getCurTime()
      |       ^~~~~~~~~~
sdm120c.c:234:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
  234 | void getCmdLine()
      |      ^~~~~~~~~~

Compiled at commit: f36fb38