SDM120C icon indicating copy to clipboard operation
SDM120C copied to clipboard

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

Open asarubbo opened this issue 1 year ago • 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: f36fb38c2f8985e2330ed2492178211d63542361

asarubbo avatar Jan 22 '24 11:01 asarubbo