Skip to content

Fix warning about ignoring result of write - #709

Merged
bradh352 merged 1 commit into
c-ares:mainfrom
zcbenz:patch-1
Feb 8, 2024
Merged

bradh352 merged 1 commit into
c-ares:mainfrom
zcbenz:patch-1

Conversation

@zcbenz

@zcbenz zcbenz commented Feb 7, 2024

Copy link
Copy Markdown
Contributor

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.
```
@bradh352
bradh352 merged commit 138e387 into c-ares:main Feb 8, 2024
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 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 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>
michael-dev pushed a commit to HamelinPorts/android_external_c-ares that referenced this pull request Apr 25, 2026
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)
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.

2 participants