From cba90f981096c2fdcd4dc70cbbf0f3b379c64aac Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Fri, 3 Jun 2011 15:59:14 +0200 Subject: [PATCH] =?utf8?q?Fix=20=E2=80=9Cinitialization=20from=20incompati?= =?utf8?q?ble=20pointer=20type=E2=80=9D=20for=20default=5Foptions.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit InputDriverRec's last field is a char**, not a const char**, fix this warning accordingly: | CC acecad.lo | acecad.c:132:1: warning: initialization from incompatible pointer type [enabled by default] | acecad.c:132:1: warning: (near initialization for 'ACECAD.default_options') [enabled by default] Reviewed-by: Peter Hutterer Reviewed-by: Daniel Stone Signed-off-by: Cyril Brulebois --- src/acecad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acecad.c b/src/acecad.c index 1e2f0c0..d60b3b6 100644 --- a/src/acecad.c +++ b/src/acecad.c @@ -106,7 +106,7 @@ /* max number of input events to read in one read call */ #define MAX_EVENTS 50 -static const char *default_options[] = +static char *default_options[] = { "BaudRate", "9600", "StopBits", "1", -- 2.32.0.93.g670b81a890