diff options
| author | Paul Eggert | 2011-03-15 16:20:25 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-15 16:20:25 -0700 |
| commit | cdef261f74c8cf58a9b9c678e730a59b009ddad9 (patch) | |
| tree | 3d66845cb2fe568aca6160b9de1790bd32362c3a /src | |
| parent | 8ef4622dd009b1d720155c7f2063f164f31a511e (diff) | |
| download | emacs-cdef261f74c8cf58a9b9c678e730a59b009ddad9.tar.gz emacs-cdef261f74c8cf58a9b9c678e730a59b009ddad9.zip | |
* data.c (Fmake_variable_buffer_local, Fmake_local_variable): Mark
variables as initialized.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/data.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ad96221ed10..db04fe30bcf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -7,6 +7,8 @@ | |||
| 7 | gcc -Wbad-function-cast warning. | 7 | gcc -Wbad-function-cast warning. |
| 8 | (default_value, arithcompare, arith_driver, arith_error): Now static. | 8 | (default_value, arithcompare, arith_driver, arith_error): Now static. |
| 9 | (store_symval_forwarding): Rename local to avoid shadowing. | 9 | (store_symval_forwarding): Rename local to avoid shadowing. |
| 10 | (Fmake_variable_buffer_local, Fmake_local_variable): Mark | ||
| 11 | variables as initialized. | ||
| 10 | 12 | ||
| 11 | * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST. | 13 | * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST. |
| 12 | (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect): | 14 | (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect): |
diff --git a/src/data.c b/src/data.c index 50a6ac219c4..6599d8fdfa3 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -1506,8 +1506,8 @@ The function `default-value' gets the default value and `set-default' sets it. | |||
| 1506 | { | 1506 | { |
| 1507 | struct Lisp_Symbol *sym; | 1507 | struct Lisp_Symbol *sym; |
| 1508 | struct Lisp_Buffer_Local_Value *blv = NULL; | 1508 | struct Lisp_Buffer_Local_Value *blv = NULL; |
| 1509 | union Lisp_Val_Fwd valcontents; | 1509 | union Lisp_Val_Fwd valcontents IF_LINT (= {0}); |
| 1510 | int forwarded; | 1510 | int forwarded IF_LINT (= 0); |
| 1511 | 1511 | ||
| 1512 | CHECK_SYMBOL (variable); | 1512 | CHECK_SYMBOL (variable); |
| 1513 | sym = XSYMBOL (variable); | 1513 | sym = XSYMBOL (variable); |
| @@ -1582,8 +1582,8 @@ Instead, use `add-hook' and specify t for the LOCAL argument. */) | |||
| 1582 | (register Lisp_Object variable) | 1582 | (register Lisp_Object variable) |
| 1583 | { | 1583 | { |
| 1584 | register Lisp_Object tem; | 1584 | register Lisp_Object tem; |
| 1585 | int forwarded; | 1585 | int forwarded IF_LINT (= 0); |
| 1586 | union Lisp_Val_Fwd valcontents; | 1586 | union Lisp_Val_Fwd valcontents IF_LINT (= {0}); |
| 1587 | struct Lisp_Symbol *sym; | 1587 | struct Lisp_Symbol *sym; |
| 1588 | struct Lisp_Buffer_Local_Value *blv = NULL; | 1588 | struct Lisp_Buffer_Local_Value *blv = NULL; |
| 1589 | 1589 | ||