aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2017-10-15 19:20:58 +0300
committerEli Zaretskii2017-10-15 19:20:58 +0300
commit325dfdae13bdc0653fe04b746326a1518ee18ff1 (patch)
treedb73df581e1835e1ae92ed5743f93da8d6a6c146
parentf79382819c60609c5eff76cb2b85c330215abf90 (diff)
downloademacs-325dfdae13bdc0653fe04b746326a1518ee18ff1.tar.gz
emacs-325dfdae13bdc0653fe04b746326a1518ee18ff1.zip
Avoid compilation warnings in optimized builds
* src/process.c (Fmake_network_process): * src/image.c (xbm_scan, gif_load): * src/fileio.c (Frename_file): * src/data.c (Fmake_local_variable): * src/buffer.c (fix_start_end_in_overlays): * lib-src/etags.c (process_file_name): Mark variables with UNINIT to avoid compiler warnings in optimized builds.
-rw-r--r--lib-src/etags.c2
-rw-r--r--src/buffer.c4
-rw-r--r--src/data.c2
-rw-r--r--src/fileio.c2
-rw-r--r--src/image.c4
-rw-r--r--src/process.c2
6 files changed, 8 insertions, 8 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 009cba528d7..cc7631f647e 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1530,7 +1530,7 @@ process_file_name (char *file, language *lang)
1530 fdesc *fdp; 1530 fdesc *fdp;
1531 compressor *compr; 1531 compressor *compr;
1532 char *compressed_name, *uncompressed_name; 1532 char *compressed_name, *uncompressed_name;
1533 char *ext, *real_name UNINIT, *tmp_name; 1533 char *ext, *real_name UNINIT, *tmp_name UNINIT;
1534 int retval; 1534 int retval;
1535 1535
1536 canonicalize_filename (file); 1536 canonicalize_filename (file);
diff --git a/src/buffer.c b/src/buffer.c
index cc6021bfb5d..1c8b4635086 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3616,8 +3616,8 @@ void
3616fix_start_end_in_overlays (register ptrdiff_t start, register ptrdiff_t end) 3616fix_start_end_in_overlays (register ptrdiff_t start, register ptrdiff_t end)
3617{ 3617{
3618 Lisp_Object overlay; 3618 Lisp_Object overlay;
3619 struct Lisp_Overlay *before_list; 3619 struct Lisp_Overlay *before_list UNINIT;
3620 struct Lisp_Overlay *after_list; 3620 struct Lisp_Overlay *after_list UNINIT;
3621 /* These are either nil, indicating that before_list or after_list 3621 /* These are either nil, indicating that before_list or after_list
3622 should be assigned, or the cons cell the cdr of which should be 3622 should be assigned, or the cons cell the cdr of which should be
3623 assigned. */ 3623 assigned. */
diff --git a/src/data.c b/src/data.c
index e070be6c208..ef7210fbfa0 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1888,7 +1888,7 @@ Instead, use `add-hook' and specify t for the LOCAL argument. */)
1888 (Lisp_Object variable) 1888 (Lisp_Object variable)
1889{ 1889{
1890 Lisp_Object tem; 1890 Lisp_Object tem;
1891 bool forwarded; 1891 bool forwarded UNINIT;
1892 union Lisp_Val_Fwd valcontents; 1892 union Lisp_Val_Fwd valcontents;
1893 struct Lisp_Symbol *sym; 1893 struct Lisp_Symbol *sym;
1894 struct Lisp_Buffer_Local_Value *blv = NULL; 1894 struct Lisp_Buffer_Local_Value *blv = NULL;
diff --git a/src/fileio.c b/src/fileio.c
index e57bf46015c..b7df38c8570 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2296,7 +2296,7 @@ This is what happens in interactive use with M-x. */)
2296 bool plain_rename = (case_only_rename 2296 bool plain_rename = (case_only_rename
2297 || (!NILP (ok_if_already_exists) 2297 || (!NILP (ok_if_already_exists)
2298 && !INTEGERP (ok_if_already_exists))); 2298 && !INTEGERP (ok_if_already_exists)));
2299 int rename_errno; 2299 int rename_errno UNINIT;
2300 if (!plain_rename) 2300 if (!plain_rename)
2301 { 2301 {
2302 if (renameat_noreplace (AT_FDCWD, SSDATA (encoded_file), 2302 if (renameat_noreplace (AT_FDCWD, SSDATA (encoded_file),
diff --git a/src/image.c b/src/image.c
index 3dac7086cb4..cd4901b3d4f 100644
--- a/src/image.c
+++ b/src/image.c
@@ -2574,7 +2574,7 @@ xbm_image_p (Lisp_Object object)
2574static int 2574static int
2575xbm_scan (char **s, char *end, char *sval, int *ival) 2575xbm_scan (char **s, char *end, char *sval, int *ival)
2576{ 2576{
2577 unsigned char c; 2577 unsigned char c UNINIT;
2578 2578
2579 loop: 2579 loop:
2580 2580
@@ -7839,7 +7839,7 @@ gif_load (struct frame *f, struct image *img)
7839 init_color_table (); 7839 init_color_table ();
7840 7840
7841#ifndef USE_CAIRO 7841#ifndef USE_CAIRO
7842 unsigned long bgcolor; 7842 unsigned long bgcolor UNINIT;
7843 if (STRINGP (specified_bg)) 7843 if (STRINGP (specified_bg))
7844 bgcolor = x_alloc_image_color (f, img, specified_bg, 7844 bgcolor = x_alloc_image_color (f, img, specified_bg,
7845 FRAME_BACKGROUND_PIXEL (f)); 7845 FRAME_BACKGROUND_PIXEL (f));
diff --git a/src/process.c b/src/process.c
index 05feba73253..943cb2a1048 100644
--- a/src/process.c
+++ b/src/process.c
@@ -3830,7 +3830,7 @@ usage: (make-network-process &rest ARGS) */)
3830 Lisp_Object proc; 3830 Lisp_Object proc;
3831 Lisp_Object contact; 3831 Lisp_Object contact;
3832 struct Lisp_Process *p; 3832 struct Lisp_Process *p;
3833 const char *portstring; 3833 const char *portstring UNINIT;
3834 ptrdiff_t portstringlen ATTRIBUTE_UNUSED; 3834 ptrdiff_t portstringlen ATTRIBUTE_UNUSED;
3835 char portbuf[INT_BUFSIZE_BOUND (EMACS_INT)]; 3835 char portbuf[INT_BUFSIZE_BOUND (EMACS_INT)];
3836#ifdef HAVE_LOCAL_SOCKETS 3836#ifdef HAVE_LOCAL_SOCKETS