[pso] 'return' : incompatible types - from 'SINGLE_LIST_ENTRY
*' to 'SINGLE_LIST_ENTRY *'
Razvan Deaconescu
razvand at cs.pub.ro
Tue Mar 27 22:52:42 EEST 2007
Dragos Tatulea wrote:
> Am doua warning-uri ciudate pe windows la compilare ( care sunt "treated
> as error"):
>
> 'return' : incompatible types - from 'SINGLE_LIST_ENTRY *' to
> 'SINGLE_LIST_ENTRY *'
> '=' : incompatible types - from 'SINGLE_LIST_ENTRY *' to
> 'SINGLE_LIST_ENTRY *'
>
> Nu prea reusesc sa inteleg ce inseamna. Codul arata cam asa:
>
> - pt primul warning :
>
> struct SINGLE_LIST_ENTRY* SciIsMonitored( int syscall, HANDLE pid)
> {
> SINGLE_LIST_ENTRY *i, *j;
> ...
> return i; // aici intoarce un pointer la un element din lista de procese
> monitorizate
> }
>
> - pt al doilea warning:
> {
> SINGLE_LIST_ENTRY *i;
>
> i = SciIsMonitored( syscall, pid);
> }
>
> Dupa cum se poate observa, warningurile sunt legate.
>
> Any ideas?
pe scurt:
http://cs.pub.ro/~pso/lxr/source/public/sdk/inc/ntdef.h?v=wrk-1.2#1089
detaliat: ce cauta "struct" in fata la SINGLE_LIST_ENTRY? :-)
Razvan
More information about the pso
mailing list