Warning Message :
ui/xxxxxxx.cpp:60: warning: 'XXX_xxxxxx_set_winsize' is deprecated (declared at /usr/include/XXX-xxx.h:63)
4.5.4. __attribute__((deprecated))
deprecated 변수 속성은 컴파일러가 경고나 오류를 발생시키지 않고 제공되지 않을 변수를
선언하게 해줍니다. 그러나 deprecated 변수에 액세스할 경우 경고는 발생하지만 컴파일은
계속 진행됩니다. 경고에서는 변수가 사용된 위치와 변수가 정의된 위치를 제공합니다.
이로써 특정 정의가 제공되지 않는 이유를 알 수 있습니다.
Note
이 변수 속성은 ARM 컴파일러에서 지원하는 GNU 컴파일러 확장입니다.
예제
extern int Variable_Attributes_deprecated_0 __attribute__ ((deprecated));
extern int Variable_Attributes_deprecated_1 __attribute__ ((deprecated));
void Variable_Attributes_deprecated_2()
{
Variable_Attributes_deprecated_0=1;
Variable_Attributes_deprecated_1=2;
}
이 예제를 컴파일하면 두 개의 경고 메시지가 생성됩니다.
참고사이트 : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0348bk/Caccahah.html