[pso] 'return' : incompatible types - from 'SINGLE_LIST_ENTRY *' to 'SINGLE_LIST_ENTRY *'

Dragos Tatulea dragos.tatulea at gmail.com
Tue Mar 27 22:50:03 EEST 2007


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070327/164a4b65/attachment.html


More information about the pso mailing list