From d78207c2eea30acdbf674210b43f36701c3cb023 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 27 Jun 2017 09:43:07 +0100 Subject: [PATCH] orcc: make coverity happy Use typedefed enum so static analysis tools like coverity can know we covered all possibilities in switch/case statements. CID 1413336. --- tools/orcc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/orcc.c b/tools/orcc.c index 5e940fc..5074e7b 100644 --- a/tools/orcc.c +++ b/tools/orcc.c @@ -49,13 +49,14 @@ char *target = "sse"; } \ } while (0) -enum { +typedef enum { MODE_IMPL, MODE_HEADER, MODE_TEST, MODE_ASSEMBLY -}; -int mode = MODE_IMPL; +} OrcMode; + +OrcMode mode = MODE_IMPL; void help (void) { -- 2.7.4