summaryrefslogtreecommitdiffstats
path: root/src/ParserCmdline.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-08-01 12:07:32 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-08-01 12:07:32 +0200
commita95438527f2db7a1535ce679edde004b982dba60 (patch)
treec2292f54640607258665738f0f05985a72dd6c84 /src/ParserCmdline.cpp
parent3a9fa704ddfc13f7a6f9d73ffd9f069b856b815e (diff)
downloaddabmux-a95438527f2db7a1535ce679edde004b982dba60.tar.gz
dabmux-a95438527f2db7a1535ce679edde004b982dba60.tar.bz2
dabmux-a95438527f2db7a1535ce679edde004b982dba60.zip
Remove some warnings, correct minor error message text
Diffstat (limited to 'src/ParserCmdline.cpp')
-rw-r--r--src/ParserCmdline.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/ParserCmdline.cpp b/src/ParserCmdline.cpp
index 9d46bf4..98140de 100644
--- a/src/ParserCmdline.cpp
+++ b/src/ParserCmdline.cpp
@@ -109,7 +109,20 @@ bool parse_cmdline(char **argv,
vector<DabService*>::iterator service = ensemble->services.end();
dabProtection* protection = NULL;
- dabInputOperations operations;
+ // Yes, this is ugly, but it suppresses warnings
+ dabInputOperations operations = {
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ };
// Default ensemble parameters:
ensemble->lto = 0;
@@ -566,7 +579,7 @@ bool parse_cmdline(char **argv,
int level;
if (optarg == NULL) {
etiLog.log(error,
- "Missing parameter for option -P\n");
+ "Missing parameter for option -p\n");
printUsage(progName);
goto EXIT;
}