diff options
-rw-r--r-- | unix/tkUnixKey.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/unix/tkUnixKey.c b/unix/tkUnixKey.c index 87aa888..3e41626 100644 --- a/unix/tkUnixKey.c +++ b/unix/tkUnixKey.c @@ -306,6 +306,10 @@ TkpSetKeycodeAndState( *---------------------------------------------------------------------- */ +#ifdef __GNUC__ +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + KeySym TkpGetKeySym( TkDisplay *dispPtr, /* Display in which to map keycode. */ @@ -363,11 +367,6 @@ TkpGetKeySym( index += 1; } -#ifdef __GNUC__ -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wdeprecated-declarations" -#endif - sym = TkKeycodeToKeysym(dispPtr, eventPtr->xkey.keycode, 0, index); @@ -472,10 +471,6 @@ TkpInitKeymapInfo( } keysym = TkKeycodeToKeysym(dispPtr, *codePtr, 0, 0); -#ifdef __GNUC__ -# pragma GCC diagnostic pop -#endif - if (keysym == XK_Mode_switch) { dispPtr->modeModMask |= ShiftMask << (i/modMapPtr->max_keypermod); } |