Use of deprecated time function g_get_curent_time
The source uses the deprecated g_get_current_time where it should now be using g_get_real_time. This would also allow the use of the deprecated GTimeVal to be omitted.
../src/gpm-statistics.c: In function ‘gpm_stats_update_info_page_history’:
../src/gpm-statistics.c:761:2: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
761 | GTimeVal timeval;
| ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from ../src/gpm-statistics.c:25:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~~~~~
../src/gpm-statistics.c:815:2: warning: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations]
815 | g_get_current_time (&timeval);
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/giochannel.h:33,
from /usr/include/glib-2.0/glib.h:54,
from ../src/gpm-statistics.c:25:
/usr/include/glib-2.0/glib/gmain.h:679:8: note: declared here
679 | void g_get_current_time (GTimeVal *result);
| ^~~~~~~~~~~~~~~~~~
Edited by agurk