Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/orc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-06-27 11:43:07 +0300
committerTim-Philipp Müller <tim@centricular.com>2017-06-27 11:43:07 +0300
commitd78207c2eea30acdbf674210b43f36701c3cb023 (patch)
tree0165655eab0a5a13806fbe108e288c641c3658f9
parentec77a91702696ed619cccccb015518ee8887a62d (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.c7
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)
{