[kde] [Bug 382723] New: arts-1.5.10/libltdl/ltdl.c: 2893: bad macro ?
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Tue Jul 25 19:08:47 BST 2017
https://bugs.kde.org/show_bug.cgi?id=382723
Bug ID: 382723
Summary: arts-1.5.10/libltdl/ltdl.c: 2893: bad macro ?
Product: kde
Version: unspecified
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: dcb314 at hotmail.com
Target Milestone: ---
Recent versions of gcc say this:
ltdl.c:2893:34: warning: division 'sizeof (lt_caller_data * {aka struct
<anonymous> *}) / sizeof (lt_caller_data {aka struct <anonymous>})' does not
compute the number of array elements [-Wsizeof-pointer-div]
Source code is
#define N_ELEMENTS(a) (sizeof(a) / sizeof(*(a)))
and the call sites are like this:
n_elements = N_ELEMENTS (handle->caller_data);
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list