Subject | Re: [firebird-support] Re: UDF problem |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2010-01-25T18:01:30Z |
25.01.2010 17:24, kittikira wrote:
Something must be wrong in pieces that you don't show.
--
SY, SD.
> I modyfied the function as follows:I've just copy-pasted this code into file and gcc gave me no warning.
>
> 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.
Something must be wrong in pieces that you don't show.
--
SY, SD.