Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function and struct should not have same declaration name #6589

Open
gSahitya-samsung opened this issue Dec 18, 2024 · 0 comments
Open

function and struct should not have same declaration name #6589

gSahitya-samsung opened this issue Dec 18, 2024 · 0 comments

Comments

@gSahitya-samsung
Copy link
Contributor

stdlib.h and signal.h in os/include using same struct and function name i.e. mallinfo & sigaction. The function declaration shadows the struct declaration resulting in build warnings. The PR #6585 has been raised to prevent warnings to come during build, but proper fix is needed.

The proper fix can be as follow:

  1. Either change struct or function name
  2. Move functions declaration into separate header file

Reference - https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant