Re: GIConv



>From: Miroslaw Dobrzanski-Neumann <mne mosaic-ag com>
>
>Dear all,
>
>while trying to compile glib on osf4d I've got errors like the following:
>cc: Error: gconvert.c, line 352: In this statement, "cd" and "(iconv_t)-1" may 
not be compared for equality or inequality.
>          if (cd == (iconv_t) -1)
>--------------^
>The problem here is that cd is of type GIConv which is declared as
>gconvert.h:50:typedef struct _GIConv *GIConv;
>
>struct _GIConv is nowhere declared so the GIConv is a pure typed opaque
>pointer type.
>
>In the code GIConv is used as alias for iconv_t. Bot the compiler and the code
>will be happy if you declare GIConv this way
>
>typedef iconv_t GIConv;
>
>I'll make a bug report with an apporpriate patch later on

I've already logged a bug along with a patch to fix this problem (and others). 
As this very same line (among others) was causing a warning while 
compiling with Sun's forte 6.2 compiler.

Bug #73898


	Regards,
		Erwann




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