Bug 89515 - undefined reference to `PA_CLAMP_UNLIKELY'
Summary: undefined reference to `PA_CLAMP_UNLIKELY'
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: clients (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
Depends on:
Reported: 2015-03-10 13:12 UTC by Victor Toso
Modified: 2018-07-30 10:07 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

move PA_UNLIKELY() from pulsecore/macro.h to pulse/gccmacro.h (4.55 KB, patch)
2015-05-20 20:45 UTC, Peter Meerwald
Details | Splinter Review

Description Victor Toso 2015-03-10 13:12:06 UTC
Can't use PA_CLAMP_VOLUME defined in volume.h as it uses PA_CLAMP_UNLIKELY which is not defined in any header.

System: Fedora 21
$rpm -ql pulseaudio-libs-devel-5.0-25.fc21.x86_64 | grep -i include
Comment 2 Peter Meerwald 2015-05-20 20:45:41 UTC
Created attachment 115931 [details] [review]
move PA_UNLIKELY() from pulsecore/macro.h to pulse/gccmacro.h

PA_CLAMP_VOLUME() in pulse/volume.h makes use of PA_CLAMP_UNLIKELY(), but PA_CLAMP_UNLIKELY() is #defined in pulsecore/macro.h, hence to avoidable to users of libpulse

proposed solution moves PA_CLAMP_UNLIKELY() together with PA_UNLIKELY() to pulse/gccmacro.h which is public
Comment 3 GitLab Migration User 2018-07-30 10:07:30 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/216.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.