Bug 1478146 - libev: ev_loop macros don't mark unused
libev: ev_loop macros don't mark unused
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libev (Show other bugs)
7.4
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Nalin Dahyabhai
atomic-bugs@redhat.com
: Extras
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-03 13:33 EDT by Robbie Harwood
Modified: 2017-08-03 13:33 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Robbie Harwood 2017-08-03 13:33:23 EDT
In ev.h, the macro EV_P and by extension, EV_P_ can optionally be either `struct ev_loop *loop` and `struct ev_loop *loop,`, or `void` and ``.

However, this means that there is no way for end user programs to both use these macros (which is needed, unless they check the value of EV_MULTIPLICITY) and build with -Wunused, since the value loop, if it exists, has to go unused.

Please mark the loop parameter as __attribute__((unused)) or similar.  Thanks!

Note You need to log in before you can comment on or make changes to this bug.