warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead

598 views
Skip to first unread message

Maxim Kim

unread,
Sep 14, 2021, 2:23:29 AM9/14/21
to vim_dev
On debian 11 I have started getting this warnings:

/usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
   73 |   GTimeVal last_popdown;
      |   ^~~~~~~~


Not sure if it is important and/or should be fixed.

My build commands are:

sudo make distclean
./configure --with-features=huge --enable-python3interp --enable-gui
sudo make install

Christian Brabandt

unread,
Sep 14, 2021, 2:40:41 AM9/14/21
to vim_dev
Yes, see https://github.com/vim/vim/issues/4987

I don't think there is much that we can do here. You may try the
mentioned "patch" there. Or start using the GTK3 gui, since gtk2 is
end-of-life already. Or use -Wno-deprecated-declarations as CFLAG


Best,
Christian
--
Die gefährlichsten Menschen auf der Welt sind die enttäuschten
Individualisten.
-- Halldór Kiljan Laxness

Maxim Kim

unread,
Sep 14, 2021, 4:29:38 AM9/14/21
to vim_dev
Thx, using --enable-gui=gtk3 is ok

вторник, 14 сентября 2021 г. в 09:40:41 UTC+3, cbl...@256bit.org:
Reply all
Reply to author
Forward
0 new messages