Skip to content

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

@asarubbo

Description

@asarubbo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions