Closed Bug 811946 Opened 13 years ago Closed 12 years ago

dom/bluetooth/BluetoothServiceUUid.h declares static objects in a header file

Categories

(Firefox OS Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(blocking-basecamp:+, firefox18 fixed, firefox19 fixed, firefox20 fixed)

RESOLVED FIXED
blocking-basecamp +
Tracking Status
firefox18 --- fixed
firefox19 --- fixed
firefox20 --- fixed

People

(Reporter: dhylands, Assigned: echou)

Details

(Whiteboard: [LOE:S])

Attachments

(1 file, 1 obsolete file)

I just happened to notice some build warnings: /home/work/B2G-profiler/mozilla-inbound/dom/bluetooth/BluetoothServiceUuid.h: At global scope: /home/work/B2G-profiler/mozilla-inbound/dom/bluetooth/BluetoothServiceUuid.h:26: warning: 'mozilla::dom::bluetooth::BluetoothServiceUuidStr::Headset' defined but not used /home/work/B2G-profiler/mozilla-inbound/dom/bluetooth/BluetoothServiceUuid.h:27: warning: 'mozilla::dom::bluetooth::BluetoothServiceUuidStr::HeadsetAG' defined but not used /home/work/B2G-profiler/mozilla-inbound/dom/bluetooth/BluetoothServiceUuid.h:28: warning: 'mozilla::dom::bluetooth::BluetoothServiceUuidStr::Handsfree' defined but not used etc
I also get the following warnings from the same header: In file included from /home/work/B2G-profiler/mozilla-inbound/dom/bluetooth/BluetoothAdapter.cpp:14: /home/work/B2G-profiler/mozilla-inbound/dom/bluetooth/BluetoothServiceUuid.h:15: warning: integer constant is too large for 'long' type /home/work/B2G-profiler/mozilla-inbound/dom/bluetooth/BluetoothServiceUuid.h:16: warning: integer constant is too large for 'long' type /home/work/B2G-profiler/mozilla-inbound/dom/bluetooth/BluetoothServiceUuid.h:17: warning: integer constant is too large for 'long' type /home/work/B2G-profiler/mozilla-inbound/dom/bluetooth/BluetoothServiceUuid.h:18: warning: integer constant is too large for 'long' type /home/work/B2G-profiler/mozilla-inbound/dom/bluetooth/BluetoothServiceUuid.h:19: warning: integer constant is too large for 'long' type /home/work/B2G-profiler/mozilla-inbound/dom/bluetooth/BluetoothServiceUuid.h:22: warning: integer constant is too large for 'long' type I think that the constants need uLL suffix to make them unsigned long longs.
Assignee: nobody → echou
Whiteboard: [LOE:S]
* Avoid annoying compiler warnings * Define a more structured interface to handle bluetooth service uuid
Attachment #684377 - Flags: review?(kyle)
Comment on attachment 684377 [details] [diff] [review] patch 1: v1: refine implementation of bluetooth uuid and avoid compiler warnings Review of attachment 684377 [details] [diff] [review]: ----------------------------------------------------------------- Nice! Looks way cleaner. :D
Attachment #684377 - Flags: review?(kyle) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
blocking-basecamp: ? → +
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: