Warning fix



Hello!

There is a minor bug in version 1.2.10. The definition of GTK_IS_OBJECT in
gtk/gtkobject.h contains:

(object) != NULL

This causes a warning (comparison between pointer and integer) with
gcc-2.96 (RedHat 7.1) when an integer is passed to GTK_OBJECT. GTK_OBJECT
takes case to cast the argument, but GTK_IS_OBJECT doesn't.

Either compare with 0 or cast it to (void *). The same applies to
GTK_IS_OBJECT_CLASS.

-- 
Regards,
Pavel Roskin





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]