diff options
| author | Paul Eggert | 2016-12-22 09:25:58 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-12-22 09:26:43 -0800 |
| commit | b10bd71987cdeb753c106145d6270a359505359c (patch) | |
| tree | 56f724cd13b7e75613534dc7a013ad3fdcc562c1 /src/coding.c | |
| parent | 5fcc777ff36c3102ddddd2fb932cb8d0b7cc2741 (diff) | |
| download | emacs-b10bd71987cdeb753c106145d6270a359505359c.tar.gz emacs-b10bd71987cdeb753c106145d6270a359505359c.zip | |
Pacify --enable-gcc-warnings
* src/charset.c (load_charset_map):
* src/coding.c (decode_coding_object):
* src/frame.c (make_frame):
* src/window.c (Frecenter):
Mark locals with UNINIT to silence false alarms from
-Wmaybe-uninitialized.
* src/lisp.h (SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD)
(SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD):
Check and assume that values are nonnull. This pacifies
-Wmaybe-uninitialized in Fmake_variable_buffer_local and
Fmake_local_variable.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coding.c b/src/coding.c index feed9c8274c..f2a92c940b7 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -8028,12 +8028,12 @@ decode_coding_object (struct coding_system *coding, | |||
| 8028 | Lisp_Object dst_object) | 8028 | Lisp_Object dst_object) |
| 8029 | { | 8029 | { |
| 8030 | ptrdiff_t count = SPECPDL_INDEX (); | 8030 | ptrdiff_t count = SPECPDL_INDEX (); |
| 8031 | unsigned char *destination; | 8031 | unsigned char *destination UNINIT; |
| 8032 | ptrdiff_t dst_bytes; | 8032 | ptrdiff_t dst_bytes UNINIT; |
| 8033 | ptrdiff_t chars = to - from; | 8033 | ptrdiff_t chars = to - from; |
| 8034 | ptrdiff_t bytes = to_byte - from_byte; | 8034 | ptrdiff_t bytes = to_byte - from_byte; |
| 8035 | Lisp_Object attrs; | 8035 | Lisp_Object attrs; |
| 8036 | ptrdiff_t saved_pt = -1, saved_pt_byte; | 8036 | ptrdiff_t saved_pt = -1, saved_pt_byte UNINIT; |
| 8037 | bool need_marker_adjustment = 0; | 8037 | bool need_marker_adjustment = 0; |
| 8038 | Lisp_Object old_deactivate_mark; | 8038 | Lisp_Object old_deactivate_mark; |
| 8039 | 8039 | ||