Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix warnings on asprintf return value checking #38

Open
robtaylor opened this issue Sep 3, 2023 · 0 comments
Open

Fix warnings on asprintf return value checking #38

robtaylor opened this issue Sep 3, 2023 · 0 comments
Labels
third party Issues in third party software

Comments

@robtaylor
Copy link
Collaborator

eg:

./../lefdef/src/def/def/def.y:5098:24: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5098 |               asprintf (&defData->defMsg,
      |               ~~~~~~~~~^~~~~~~~~~~~~~~~~~
 5099 |                  "The STYLES statement is available in version 5.6 and later.\nHowever, your DEF file is defined with version %g", defData->VersionNum);
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@Coloquinte Coloquinte added the third party Issues in third party software label Dec 6, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
third party Issues in third party software
Projects
None yet
Development

No branches or pull requests

2 participants