From d9806a55a05157165dceb48727791954c1656ab1 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 12 Aug 2018 19:02:32 +0300 Subject: [PATCH] ; Avoid compilation warnings under -Og * src/w32.c (w32_read_registry): * src/font.c (font_parse_fcname): * src/fns.c (Fnconc): * src/editfns.c (tzlookup): * src/frame.c (x_set_frame_parameters): Avoid compiler warnings about maybe-uninitialized variables. --- src/editfns.c | 2 +- src/fns.c | 2 +- src/font.c | 2 +- src/frame.c | 2 +- src/w32.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/editfns.c b/src/editfns.c index 92566fe3bbe..71eb2a88090 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -174,7 +174,7 @@ tzlookup (Lisp_Object zone, bool settz) else if (plain_integer || (CONSP (zone) && FIXNUMP (XCAR (zone)) && CONSP (XCDR (zone)))) { - Lisp_Object abbr; + Lisp_Object abbr = Qnil; if (!plain_integer) { abbr = XCAR (XCDR (zone)); diff --git a/src/fns.c b/src/fns.c index ac5edc2cdbd..7af2273f7e9 100644 --- a/src/fns.c +++ b/src/fns.c @@ -2522,7 +2522,7 @@ usage: (nconc &rest LISTS) */) CHECK_CONS (tem); - Lisp_Object tail; + Lisp_Object tail = Qnil; FOR_EACH_TAIL (tem) tail = tem; diff --git a/src/font.c b/src/font.c index f31d9c21e71..9a0a9babd27 100644 --- a/src/font.c +++ b/src/font.c @@ -1468,7 +1468,7 @@ font_parse_fcname (char *name, ptrdiff_t len, Lisp_Object font) else { /* KEY=VAL pairs */ - Lisp_Object key; + Lisp_Object key = Qnil; int prop; if (q - p == 10 && memcmp (p + 1, "pixelsize", 9) == 0) diff --git a/src/frame.c b/src/frame.c index f9a73c8ffef..81642ccded3 100644 --- a/src/frame.c +++ b/src/frame.c @@ -3798,7 +3798,7 @@ x_set_frame_parameters (struct frame *f, Lisp_Object alist) Lisp_Object icon_left, icon_top; /* And with this. */ - Lisp_Object fullscreen; + Lisp_Object fullscreen = Qnil; bool fullscreen_change = false; /* Record in these vectors all the parms specified. */ diff --git a/src/w32.c b/src/w32.c index 299bba7be4a..ef6047580e6 100644 --- a/src/w32.c +++ b/src/w32.c @@ -9358,7 +9358,7 @@ w32_read_registry (HKEY rootkey, Lisp_Object lkey, Lisp_Object lname) DWORD vsize, vtype; LPBYTE pvalue; Lisp_Object val, retval; - const char *key, *value_name; + const char *key, *value_name = NULL; /* The following sizes are according to size limitations documented in MSDN. */ wchar_t key_w[255+1]; -- 2.39.2