diff options
| author | Paul Eggert | 2012-07-09 09:38:45 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-09 09:38:45 -0700 |
| commit | 5994c1836bc3c2457aa1e27c1191bf03a9be1721 (patch) | |
| tree | 7aee5e4d288885098634f9356a485b1908a48775 /lib-src | |
| parent | 26bccfaebf452511a06c2b19414a73b041b17853 (diff) | |
| download | emacs-5994c1836bc3c2457aa1e27c1191bf03a9be1721.tar.gz emacs-5994c1836bc3c2457aa1e27c1191bf03a9be1721.zip | |
Add GCC-style 'const' attribute to functions that can use it.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/etags.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index e2eb418327e..bc7c5d7114d 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-07-09 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Add GCC-style 'const' attribute to functions that can use it. | ||
| 4 | * etags.c (number_len): Add ATTRIBUTE_CONST. | ||
| 5 | |||
| 1 | 2012-07-09 Juanma Barranquero <lekktu@gmail.com> | 6 | 2012-07-09 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * emacsclient.c (w32_execvp): Declare execvp to silence the compiler. | 8 | * emacsclient.c (w32_execvp): Declare execvp to silence the compiler. |
diff --git a/lib-src/etags.c b/lib-src/etags.c index 5bdf3402e55..7141811239f 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -2123,7 +2123,7 @@ invalidate_nodes (fdesc *badfdp, node **npp) | |||
| 2123 | 2123 | ||
| 2124 | 2124 | ||
| 2125 | static int total_size_of_entries (node *); | 2125 | static int total_size_of_entries (node *); |
| 2126 | static int number_len (long); | 2126 | static int number_len (long) ATTRIBUTE_CONST; |
| 2127 | 2127 | ||
| 2128 | /* Length of a non-negative number's decimal representation. */ | 2128 | /* Length of a non-negative number's decimal representation. */ |
| 2129 | static int | 2129 | static int |