XFCE4 Hardware Monitor Applet - Port of GNOME 2 Hardware Monitor Applet

Omega Weapon omegaphil at gmail.com
Thu Nov 21 18:34:27 CET 2013


On 20/11/13 14:07, Maximilien Noal wrote:
> Hello,
>
> Here is an Archlinux AUR package for it :
> https://aur.archlinux.org/packages/xfce4-hardware-monitor-applet-git/

Thankyou :) I better start collecting links in a new wiki page on github.


> Apart from that, I got a warning in the build log :
>> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I..
>> -DHARDWARE_MONITOR_GLADEDIR=\"/usr/share/hardware-monitor/glade/\"
>> -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -pthread
>> -I/usr/include/xfce4/libxfce4panel-1.0 -I/usr/include/gtk-2.0
>> -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0
>> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1
>> -I/usr/include/libdrm -I/usr/include/libpng16
>> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16
>> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
>> -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/xfce4
>> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread
>> -I/usr/include/xfce4/libxfce4ui-1 -I/usr/include/gtk-2.0
>> -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0
>> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1
>> -I/usr/include/libdrm -I/usr/include/libpng16
>> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16
>> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
>> -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/xfce4
>> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
>> -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/libgnomecanvasmm-2.6
>> -I/usr/lib/libgnomecanvasmm-2.6/include
>> -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gail-1.0
>> -I/usr/include/libart-2.0 -I/usr/include/libglademm-2.4
>> -I/usr/lib/libglademm-2.4/include -I/usr/include/gtkmm-2.4
>> -I/usr/lib/gtkmm-2.4/include -I/usr/include/atkmm-1.6
>> -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0
>> -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include
>> -I/usr/include/giomm-2.4 -I/usr/lib/giomm-2.4/include
>> -I/usr/include/pangomm-1.4 -I/usr/lib/pangomm-1.4/include
>> -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include
>> -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include
>> -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include
>> -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0
>> -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0
>> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1
>> -I/usr/include/libdrm -I/usr/include/libpng16
>> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16
>> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
>> -I/usr/include/pango-1.0 -I/usr/include/freetype2
>> -I/usr/include/libxml2 -I/usr/include/libgtop-2.0
>> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -O3
>> -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
>> -MT libhardware_monitor_la-bar-view.lo -MD -MP -MF
>> .deps/libhardware_monitor_la-bar-view.Tpo -c bar-view.cpp  -fPIC -DPIC
>> -o .libs/libhardware_monitor_la-bar-view.o
>> applet.cpp: In function 'void applet_construct(XfcePanelPlugin*)':
>> applet.cpp:56:10: warning: ignoring return value of 'int nice(int)',
>> declared with attribute warn_unused_result [-Wunused-result]
>>    nice(5);  // Don't eat up too much CPU
>>           ^
>> mv -f .deps/libhardware_monitor_la-bar-view.Tpo
>> .deps/libhardware_monitor_la-bar-view.Plo

I originally considered that irrelevant, but I've looked into this since 
you mentioned it - apparently -Wunused-result is enabled by default (I'm 
using -Wall as well), and g++ isn't complaining here after a make clean. 
Even with

make CXXFLAGS='-Wunused-result'

g++ isn't complaining, so I don't know what to do here. If I can get g++ 
to complain then apparently the 'solution' is to prefix with '(void)'?


> Finally, are there release tarballs for this project, or commits tagged
> with release versions in the repository ?

I have read into tags and created '1.4.4', which is now pushed.



More information about the Xfce4-dev mailing list