From: Matt Ranostay Date: Thu, 7 Mar 2013 23:51:08 +0000 (-0800) Subject: bugfix: Resolved -Werror message in main.cpp X-Git-Tag: pulseview-0.1.0~94 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=815b3f2661ba68ce30076f7e14ebc02aba56d48f bugfix: Resolved -Werror message in main.cpp 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 --- diff --git a/main.cpp b/main.cpp index 43c8cb8e..9e8bfc7f 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;