Subject Re: [firebird-support] Re: UDF problem
Author Dimitry Sibiryakov
25.01.2010 17:24, kittikira wrote:
> I modyfied the function as follows:
>
> ISC_DATE * first_day (int * y, int * m)
>
> {
> ISC_DATE *bufdate = (ISC_DATE *) ib_util_malloc (sizeof(ISC_DATE));
> struct tm tm1;
> tm1.tm_sec = 0;
> tm1.tm_min = 0;
> tm1.tm_hour = 0;
> tm1.tm_year = *y - IB_START_YEAR;
> tm1.tm_mon = *m - 1;
> tm1.tm_mday = 1;
> isc_encode_sql_date(&tm1, bufdate);
> return bufdate;
> }
>
> Still the same warning.

I've just copy-pasted this code into file and gcc gave me no warning.
Something must be wrong in pieces that you don't show.

--
SY, SD.