diff options
| author | Paul Eggert | 2015-01-15 20:37:05 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-01-15 20:37:44 -0800 |
| commit | 0adc75af1833cd46aab339ce7f1ca5d6919c70af (patch) | |
| tree | fb4bc7c0172c31f8313bbde3dabe4ef9bf5fe07e /lib-src | |
| parent | 255d2a5a53083d676977023e9772d97095c6db46 (diff) | |
| download | emacs-0adc75af1833cd46aab339ce7f1ca5d6919c70af.tar.gz emacs-0adc75af1833cd46aab339ce7f1ca5d6919c70af.zip | |
Give up on -Wsuggest-attribute=const
The attribute doesn't help performance significantly, and the
warning seems to be more trouble than it's worth. See the thread at:
http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00361.html
* configure.ac (WERROR_CFLAGS): Don't use -Wsuggest-attribute=const.
* lib-src/make-docfile.c (write_globals):
Remove special hack for Fnext_read_file_uses_dialog_p.
* src/decompress.c (Fzlib_available_p):
* src/gnutls.c (Fgnutls_available_p):
* src/gtkutil.h (xg_uses_old_file_dialog):
* src/xdisp.c (Ftool_bar_height):
* src/xmenu.c (popup_activated):
No longer const, since it's not const on at lest some
configurations, and we shouldn't lie to the compiler.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 6 | ||||
| -rw-r--r-- | lib-src/make-docfile.c | 12 |
2 files changed, 6 insertions, 12 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index e9205fdd12a..7cbf3274946 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2015-01-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Give up on -Wsuggest-attribute=const | ||
| 4 | * make-docfile.c (write_globals): | ||
| 5 | Remove special hack for Fnext_read_file_uses_dialog_p | ||
| 6 | |||
| 1 | 2015-01-13 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2015-01-13 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | Don't say Fnext_read_file_uses_dialog_p is const | 9 | Don't say Fnext_read_file_uses_dialog_p is const |
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 741fa4bfa42..79d421a0a8e 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -729,18 +729,6 @@ write_globals (void) | |||
| 729 | 729 | ||
| 730 | if (globals[i].flags & DEFUN_const) | 730 | if (globals[i].flags & DEFUN_const) |
| 731 | fputs (" ATTRIBUTE_CONST", stdout); | 731 | fputs (" ATTRIBUTE_CONST", stdout); |
| 732 | else if (strcmp (globals[i].name, "Fnext_read_file_uses_dialog_p") | ||
| 733 | == 0) | ||
| 734 | { | ||
| 735 | /* It would be nice to have a cleaner way to deal with this | ||
| 736 | special hack. */ | ||
| 737 | fputs (("\n" | ||
| 738 | "#if ! (defined USE_GTK || defined USE_MOTIF \\\n" | ||
| 739 | " || defined HAVE_NS || defined HAVE_NTGUI)\n" | ||
| 740 | "\tATTRIBUTE_CONST\n" | ||
| 741 | "#endif\n"), | ||
| 742 | stdout); | ||
| 743 | } | ||
| 744 | 732 | ||
| 745 | puts (";"); | 733 | puts (";"); |
| 746 | } | 734 | } |