Closed Bug 798738 Opened 12 years ago Closed 12 years ago

Compiler tautology errors in SIPCC

Categories

(Core :: WebRTC: Signaling, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 799071

People

(Reporter: ekr, Assigned: ehugg)

Details

Attachments

(1 file)

Attached file demo
The problem here is comparing an enum to an integral value that is not in the enum's range. I have attached a sloppy patch that identifies the enums in question, but if you compile with clang-3.2 you will see them.
Assignee: nobody → ethanhugg
This is where reset_type comes from:

// define device reset types
typedef enum {
    DEVICE_RESET   = CC_DEVICE_RESET,
    DEVICE_RESTART = CC_DEVICE_RESTART,
    ICMP_UNREACHABLE_RESET = CC_DEVICE_ICMP_UNREACHABLE
} DeviceResetType;

See new patch on bug 799071; we probably want to dup this to that
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.