After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 669025 - sound: fix a couple of implicit declarations
sound: fix a couple of implicit declarations
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Sound
git master
Other OpenBSD
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-01-30 13:28 UTC by Antoine Jacoutot
Modified: 2012-01-30 14:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Include math.h to prevent implicit/incompatible declarations on round(3) (1.11 KB, patch)
2012-01-30 13:28 UTC, Antoine Jacoutot
committed Details | Review

Description Antoine Jacoutot 2012-01-30 13:28:09 UTC
Created attachment 206425 [details] [review]
Include math.h to prevent implicit/incompatible declarations on round(3)

Hi.

On at least OpenBSD, I'm getting the following warnings when compiling:

gvc-mixer-dialog.c:776: warning: implicit declaration of function 'round'
gvc-mixer-dialog.c:776: warning: incompatible implicit declaration of built-in function 'round'
<...>
gvc-stream-status-icon.c:77: warning: implicit declaration of function 'round'
gvc-stream-status-icon.c:77: warning: incompatible implicit declaration of built-in function 'round'

The is a missing declaration of round() and the one from gcc built-in is incompatible with the one from libm.
Including math.h fixes that.