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)
Tracking
(blocking-basecamp:+, firefox18 fixed, firefox19 fixed, firefox20 fixed)
RESOLVED
FIXED
| blocking-basecamp | + |
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
| Reporter | ||
Comment 1•13 years ago
|
||
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 | ||
Updated•13 years ago
|
Assignee: nobody → echou
Whiteboard: [LOE:S]
| Assignee | ||
Comment 2•13 years ago
|
||
* Avoid annoying compiler warnings
* Define a more structured interface to handle bluetooth service uuid
Attachment #684377 -
Flags: review?(kyle)
Comment 3•13 years ago
|
||
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+
| Assignee | ||
Comment 4•13 years ago
|
||
Attachment #684377 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•13 years ago
|
||
| Assignee | ||
Comment 6•13 years ago
|
||
blocking-basecamp: --- → ?
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
blocking-basecamp: ? → +
Comment 8•12 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•