Skip to content

redundant pragma deprecated warning at the site of declaration #242

@YashasSamaga

Description

@YashasSamaga
#pragma deprecated don't use please
f() {

}

main() {
  
}

no deprecated function warning for the above code which is right

#pragma deprecated don't use please
f() {

}

main() {
  f();
}

two warnings are thrown instead of just one

I think this is not right. : the warning thrown at the site of declaration of the deprecated function is redundant.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions