Sun Studio Compiler : 암시 적 기능 선언 : typeof
문제
Sun Studio Compiler로 MPD를 컴파일하려고 할 때 :
"client.c", line 438: warning: implicit function declaration: typeof
나는 불쾌한 코드 줄을 추적했다. dlist.h
:
#define list_for_each_entry(pos, head, member) \
for (pos = list_entry((head)->next, typeof(*pos), member); \
&pos->member != (head); \
pos = list_entry(pos->member.next, typeof(*pos), member))
에 따르면 Wikipedia 기사의 유형, 그것은 GCC 확장입니다. a typeof
Sun Studio에서 동등한 또는 그것을 모방하는 방법?
해결책
이 기사 말한다 typeof
Sun Studio 12에서 소개됩니다.
제휴하지 않습니다 StackOverflow