Skip to content

Recognize when a function has already been prototyped. #283

@pdhixenbaugh

Description

@pdhixenbaugh

When compiling C code, and make outputs error: a parameter list without types is only allowed in a function definition, it may be the following case:

  • The code prototyped a function earlier, and is now (incorrectly) trying to prototype it again.

https://stackoverflow.com/questions/49571922/error-a-parameter-list-without-types-is-only-allowed-in-a-function-definition

help50 could say something like, clang thinks you are declaring your function here. Are you trying to call it instead?

(This is in reference to the Short on Debugging, which suggests submitting new use cases to the help50 github repo.)

Hope this helps!

P.S. I am working on pset3; can't wait to get to the python lectures, where I can start thinking about submitting pull requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions