From 815b3f2661ba68ce30076f7e14ebc02aba56d48f Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Thu, 7 Mar 2013 15:51:08 -0800 Subject: [PATCH] bugfix: Resolved -Werror message in main.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit pulseview/main.cpp: In function ‘int main(int, char**)’: pulseview/main.cpp:91:13: error: comparison is always false due to limited range of data type [-Werror=type-limits] Signed-off-by: Matt Ranostay --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 43c8cb8..9e8bfc7 100644 --- a/main.cpp +++ b/main.cpp @@ -86,7 +86,7 @@ int main(int argc, char *argv[]) {0, 0, 0, 0} }; - const char c = getopt_long(argc, argv, + const int c = getopt_long(argc, argv, "Vh?", long_options, NULL); if (c == -1) break; -- 2.30.2