Skip to content

Subject: Conflict between declaration without prototype and definition with prototype of __dls2 #92

Description

@oresterosso75

During compilation, a warning occurred regarding a conflict between the declaration of __dls2 without a prototype in the dlstart.c file and its definition with a prototype in the rcrt1.c file. The compiler reports that the declaration without a prototype is deprecated and is treated as a zero-parameter prototype in C2x.

warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]

photo_2024-11-11_18-15-20

Request: How can we resolve this conflict? Should the declaration be aligned with the prototype, or are there other solutions to consider?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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