gnokii-users
[Top][All Lists]
Advanced

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

Re: warning: pointer targets in assignment differ in signedness


From: Dan Oetting
Subject: Re: warning: pointer targets in assignment differ in signedness
Date: Tue, 3 Jan 2006 17:10:14 -0700

And this is an example of why you want to see warnings: (does this code even work?)

in file nokia-decoding.c line 252:

static gn_error calnote_get_alarm(int alarmdiff, gn_timestamp *time, gn_timestamp *alarm)
{
        time_t t_alarm;
        struct tm tm_time, *tm_alarm;
...
        t_alarm += timezone;

This is adding the pointer to the function timezone() instead of the offset from *time (or *alarm).

-- Dan O.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]