1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00
Files
libssh2/example
Viktor Szakats 7f5d5f3c21 example: check write() and fgets() results to silence -Wunused-result
Seen when building in cmake Release config on Linux:
```
example/scp_nonblock.c:254:17: error: ignoring return value
of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  254 |                 write(1, mem, (size_t)nread);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Ref: https://github.com/libssh2/libssh2/actions/runs/28063084190/job/83084069984

```
example/sftp.c:73:9: error: ignoring return value of ‘fgets’ declared
with attribute ‘warn_unused_result’ [-Wunused-result]
   73 |         fgets(buf, sizeof(buf), stdin);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Ref: https://github.com/libssh2/libssh2/actions/runs/28064008314/job/83084278796

Closes #2122
2026-06-24 01:56:35 +02:00
..
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00
2026-06-21 23:15:10 +02:00