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 /src/gtkutil.h | |
| 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 'src/gtkutil.h')
| -rw-r--r-- | src/gtkutil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gtkutil.h b/src/gtkutil.h index 7d712c92e0d..0ac49ca7db5 100644 --- a/src/gtkutil.h +++ b/src/gtkutil.h | |||
| @@ -78,7 +78,7 @@ typedef struct xg_menu_item_cb_data_ | |||
| 78 | 78 | ||
| 79 | } xg_menu_item_cb_data; | 79 | } xg_menu_item_cb_data; |
| 80 | 80 | ||
| 81 | extern bool xg_uses_old_file_dialog (void) ATTRIBUTE_CONST; | 81 | extern bool xg_uses_old_file_dialog (void); |
| 82 | 82 | ||
| 83 | extern char *xg_get_file_name (struct frame *f, | 83 | extern char *xg_get_file_name (struct frame *f, |
| 84 | char *prompt, | 84 | char *prompt, |