Wrong Glib::RefPtr comparison
RFI detector and quality analysis for astronomical radio observations
Brought to you by:
anoko
When compiling with gcc-6 (or the new glib version) on Debian testing, Glib::RefPtr
cannot be compared anymore to an int
(0
) like:
Glib::RefPtr<Gdk::Window> window = get_window(); if(window != 0 && get_width() > 0 && get_height() > 0) ...
Instead, this should be replaced with if (window && get_width...)
.
The attached patch fixes all these cases so than AOFlagger may be compiled on a recent Debian system.
Excellent, thanks for the patch. I've committed it to the repository and the fix will be part of aoflagger 2.9.