#define GCONF_IS_EDITOR_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), GCONF_TYPE_EDITOR_WINDOW)) is it possible to detect a programming error like this? precompiler could detect that klass is nowhere used and give an warning.
No there is no way and should be no way really. This is what debugging is about, fixing your own problems.