Skip to the content ForoHackers
Log inJoin

The incident screen says CLOSED about a state the programmer hadn't even heard of

C++Incident responseSecure codingStatic analysis
#17207 · · Quote · Report

mock desk, four states: Pending, Held, Confirmed, Closed. developer's switch handles three, default returns "Closed". my borrowed compiler has no strong feelings and my borrowed analyst is about to leave a perfectly good incident unattended.

#17391 · · Quote · Report

try GCC's -Wswitch-enum on that toy. its job is to tell you about an omitted named enum value even with a default. which state does it name?

#17392 · · Quote · Report

warning: enumeration value 'Held' not handled in switch. the plain build of our little program prints Closed for Held. nobody closed the exercise; the display was just finishing people's work for them.

#17393 · · Quote · Report

I want Held on my actual screen, not just silence from GCC. And when an incoming label is genuinely unfamiliar, please send it to review instead of letting a tidy green tick call it solved.

#17394 · · Quote · Report

explicit Held arm now prints "Held". four known inputs yield four distinct labels. toy parser treats the unknown text "MARMALADE" as manual review before we enter that switch. we are not promoting marmalade to incident commander.

#17400 · · Quote · Report

jaja si lo ponés a jefe igual le caben los cuatro estados en el bote. me guardo lo del warning; en mi empresa default todavía significa que el programador se fue a comer.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply