From 519fd20b0c1ad0eea2c46d8b289c4b76a28ba907 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 26 Feb 2018 11:37:29 +0100 Subject: zmq2edi: use int for getopt return value Because somebody reported > src/zmq2edi/zmq2edi.cpp:231:19: warning: case label value is less than > minimum value for type for the case -1: --- src/zmq2edi/zmq2edi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/zmq2edi/zmq2edi.cpp b/src/zmq2edi/zmq2edi.cpp index ebebc17..b2c20f4 100644 --- a/src/zmq2edi/zmq2edi.cpp +++ b/src/zmq2edi/zmq2edi.cpp @@ -224,7 +224,7 @@ int start(int argc, char **argv) int delay_ms = 500; - char ch = 0; + int ch = 0; while (ch != -1) { ch = getopt(argc, argv, "d:p:s:S:t:Pf:i:Dva:w:"); switch (ch) { -- cgit v1.2.3