By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2790 - arts-1.5.10/libltdl/ltdl.c: 2893: bad macro ?
Summary: arts-1.5.10/libltdl/ltdl.c: 2893: bad macro ?
Status: NEW
Alias: None
Product: TDE
Classification: Unclassified
Component: arts (show other bugs)
Version: R14.1.x [Trinity]
Hardware: Other Linux
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks: 2968
  Show dependency treegraph
 
Reported: 2017-07-25 13:51 CDT by dcb314
Modified: 2018-08-30 03:01 CDT (History)
2 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dcb314 2017-07-25 13:51:59 CDT
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);