]> sigrok.org Git - pulseview.git/commitdiff
bugfix: Resolved -Werror message in main.cpp
authorMatt Ranostay <redacted>
Thu, 7 Mar 2013 23:51:08 +0000 (15:51 -0800)
committerUwe Hermann <redacted>
Sat, 9 Mar 2013 10:43:04 +0000 (11:43 +0100)
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 <redacted>
main.cpp

index 43c8cb8e965c1c22bb947d3be71d7d3bf39d2613..9e8bfc7f9c83313510ca8b186102ecc4297f66c3 100644 (file)
--- 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;