When trying to compile gnome-system-monitor-46.0-r1 I found that it does not compile in al LLVM profile with clang with the error (full log attached below): ../gnome-system-monitor-46.0/src/proctable.cpp:106:25: error: type 'gdouble' (aka 'double') cannot be narrowed to 'int' in initializer list [-Wc++11-narrowing] ../gnome-system-monitor-46.0/src/proctable.cpp:106:28: error: type 'gdouble' (aka 'double') cannot be narrowed to 'int' in initializer list [-Wc++11-narrowing] I'm attaching below a little patch which fixes the compile issue
Created attachment 899485 [details] emerge --info
Created attachment 899486 [details] Full build log
Created attachment 899487 [details, diff] Patch fixing compile This only promotes explicitelly gdouble to gint for calling the constructor and avoiding the narrowing error
Thanks for the patch Was this send to upstream?
(In reply to Pacho Ramos from comment #4) > Thanks for the patch > > Was this send to upstream? No, I just focused on having it working on my system
It would be nice if you could send it to: https://gitlab.gnome.org/GNOME/gnome-system-monitor/-/issues Otherwise we will need to carry the patch forever Thanks
https://gitlab.gnome.org/GNOME/gnome-system-monitor/-/commit/a738bcc9765032f52d89aebc976d4f7674c65ca9