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

Fix warning about ignoring result of write #709

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Conversation

zcbenz
Copy link
Contributor

@zcbenz zcbenz commented Feb 7, 2024

Fix the compiler warning from clang:

ares_event_wake_pipe.c:120:3: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
  120 |   write(p->filedes[1], "1", 1);
      |   ^~~~~ ~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Fix the compiler warning from clang:

```
ares_event_wake_pipe.c:120:3: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
  120 |   write(p->filedes[1], "1", 1);
      |   ^~~~~ ~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
zcbenz added a commit to zcbenz/node that referenced this pull request Feb 7, 2024
This change can be removed after the upstream fix lands in Node:
c-ares/c-ares#709
@bradh352 bradh352 merged commit 138e387 into c-ares:main Feb 8, 2024
36 checks passed
bradh352 pushed a commit that referenced this pull request Feb 8, 2024
Fix the compiler warning from clang:

```
ares_event_wake_pipe.c:120:3: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
  120 |   write(p->filedes[1], "1", 1);
      |   ^~~~~ ~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```

Fix By: Cheng Zhao (@zcbenz)
zcbenz added a commit to zcbenz/node that referenced this pull request Feb 21, 2024
This change can be removed after the upstream fix lands in Node:
c-ares/c-ares#709
zcbenz added a commit to zcbenz/node that referenced this pull request Feb 21, 2024
This change can be removed after the upstream fix lands in Node:
c-ares/c-ares#709
zcbenz added a commit to zcbenz/node that referenced this pull request Feb 21, 2024
This change can be removed after the upstream fix lands in Node:
c-ares/c-ares#709
zcbenz added a commit to zcbenz/node that referenced this pull request Feb 23, 2024
This change can be removed after the upstream fix lands in Node:
c-ares/c-ares#709
zcbenz added a commit to nodejs/node that referenced this pull request Feb 23, 2024
This change can be removed after the upstream fix lands in Node:
c-ares/c-ares#709

PR-URL: #51687
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
marco-ippolito pushed a commit to nodejs/node that referenced this pull request Feb 26, 2024
This change can be removed after the upstream fix lands in Node:
c-ares/c-ares#709

PR-URL: #51687
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
marco-ippolito pushed a commit to nodejs/node that referenced this pull request Feb 26, 2024
This change can be removed after the upstream fix lands in Node:
c-ares/c-ares#709

PR-URL: #51687
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
marco-ippolito pushed a commit to nodejs/node that referenced this pull request Feb 27, 2024
This change can be removed after the upstream fix lands in Node:
c-ares/c-ares#709

PR-URL: #51687
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
richardlau pushed a commit to nodejs/node that referenced this pull request Mar 25, 2024
This change can be removed after the upstream fix lands in Node:
c-ares/c-ares#709

PR-URL: #51687
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
richardlau pushed a commit to nodejs/node that referenced this pull request Mar 25, 2024
This change can be removed after the upstream fix lands in Node:
c-ares/c-ares#709

PR-URL: #51687
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
rdw-msft pushed a commit to rdw-msft/node that referenced this pull request Mar 26, 2024
This change can be removed after the upstream fix lands in Node:
c-ares/c-ares#709

PR-URL: nodejs#51687
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants