You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With gcc 10.2, on Ubuntu, I get the following warnings in the test programs:
../tests/margo-test-init-ext.c: In function ‘readfile’:
../tests/margo-test-init-ext.c:26:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
26 | fread(string, 1, fsize, f);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/unit-tests/helper-server.c: In function ‘HS_start’:
../tests/unit-tests/helper-server.c:37:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
37 | write(p[1], addr_size, sizeof(*addr_size));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/unit-tests/helper-server.c:38:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
38 | write(p[1], addr, *addr_size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/unit-tests/helper-server.c:53:13: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
53 | read(p[0], addr_size, sizeof(*addr_size));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/unit-tests/helper-server.c:54:13: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
54 | read(p[0], addr, *addr_size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
These are trivial, but part of why I opened an issue is that I'm curious about what CFLAGS make them appear. Counterintuitively, there are no warnings emitted on my laptop if I have -Wall set, but they do appear if my CFLAGS are empty at configure time.
The text was updated successfully, but these errors were encountered:
With gcc 10.2, on Ubuntu, I get the following warnings in the test programs:
These are trivial, but part of why I opened an issue is that I'm curious about what CFLAGS make them appear. Counterintuitively, there are no warnings emitted on my laptop if I have -Wall set, but they do appear if my CFLAGS are empty at configure time.
The text was updated successfully, but these errors were encountered: