From 73e62cdc110e644616acf4a10b693768818a8ba5 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 13 Feb 2012 11:25:56 +0000 Subject: Add internal error for unsupported code paths Patch mainly helps static analyzers to better work with code paths lvm code should never trigger. --- tools/reporter.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/reporter.c') diff --git a/tools/reporter.c b/tools/reporter.c index a5272538..1c8e39d1 100644 --- a/tools/reporter.c +++ b/tools/reporter.c @@ -315,6 +315,9 @@ static int _report(struct cmd_context *cmd, int argc, char **argv, "report/pvsegs_cols_verbose", DEFAULT_PVSEGS_COLS_VERB); break; + default: + log_error(INTERNAL_ERROR "Unknown report type."); + return ECMD_FAILED; } /* If -o supplied use it, else use default for report_type */ -- cgit