diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-06-27 11:43:07 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-06-27 11:43:07 +0300 |
commit | d78207c2eea30acdbf674210b43f36701c3cb023 (patch) | |
tree | 0165655eab0a5a13806fbe108e288c641c3658f9 | |
parent | ec77a91702696ed619cccccb015518ee8887a62d (diff) |
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.
-rw-r--r-- | tools/orcc.c | 7 |
1 files 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) { |