diff options
| author | Paul Eggert | 2012-09-12 21:14:33 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-09-12 21:14:33 -0700 |
| commit | 8ea47e3a5073256b30a42d34a2654e4551ce7e78 (patch) | |
| tree | e6108d2d6c14fe82a4127a8f5d996297314d957b /src | |
| parent | 2168fe4f2ad6ea4320a0da7976294b0cdade1a20 (diff) | |
| download | emacs-8ea47e3a5073256b30a42d34a2654e4551ce7e78.tar.gz emacs-8ea47e3a5073256b30a42d34a2654e4551ce7e78.zip | |
Better workaround for GNOME bug when --enable-gcc-warnings.
* emacsgtkfixed.c (G_STATIC_ASSERT): Remove, undoing last change.
Instead, disable -Wunused-local-typedefs. See Dmitry Antipov in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00335.html>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/emacsgtkfixed.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c8588b973f8..2bc041f0435 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2012-09-13 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2012-09-13 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Better workaround for GNOME bug when --enable-gcc-warnings. | ||
| 4 | * emacsgtkfixed.c (G_STATIC_ASSERT): Remove, undoing last change. | ||
| 5 | Instead, disable -Wunused-local-typedefs. See Dmitry Antipov in | ||
| 6 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00335.html>. | ||
| 7 | |||
| 3 | Simplify SIGIO usage (Bug#12408). | 8 | Simplify SIGIO usage (Bug#12408). |
| 4 | The code that dealt with SIGIO was crufty and confusing, e.g., it | 9 | The code that dealt with SIGIO was crufty and confusing, e.g., it |
| 5 | played tricks like "#undef SIGIO" but these tricks were not used | 10 | played tricks like "#undef SIGIO" but these tricks were not used |
diff --git a/src/emacsgtkfixed.c b/src/emacsgtkfixed.c index a21d0f8a422..c0d29a640ed 100644 --- a/src/emacsgtkfixed.c +++ b/src/emacsgtkfixed.c | |||
| @@ -28,9 +28,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | #include "xterm.h" | 28 | #include "xterm.h" |
| 29 | 29 | ||
| 30 | /* Silence a bogus diagnostic; see GNOME bug 683906. */ | 30 | /* Silence a bogus diagnostic; see GNOME bug 683906. */ |
| 31 | #include <verify.h> | 31 | #if (__GNUC__ == 4 && 6 <= __GNUC_MINOR__) || 4 < __GNUC__ |
| 32 | #undef G_STATIC_ASSERT | 32 | # pragma GCC diagnostic push |
| 33 | #define G_STATIC_ASSERT(x) verify (x) | 33 | # pragma GCC diagnostic ignored "-Wunused-local-typedefs" |
| 34 | #endif | ||
| 34 | 35 | ||
| 35 | #define EMACS_TYPE_FIXED emacs_fixed_get_type () | 36 | #define EMACS_TYPE_FIXED emacs_fixed_get_type () |
| 36 | #define EMACS_FIXED(obj) \ | 37 | #define EMACS_FIXED(obj) \ |