使用Q_UNUSED()宏时,如果出现如下警告:
E:\QT_Project\xingfa_version\xingfa_8_tcp_server\engine\debug\debug_printfFun.cpp:46:
error: 'Q_UNUSED' was not declared in this scope
Q_UNUSED(name);
^
可以包含QT库全局头文件
#include <qglobal.h>
使用Q_UNUSED()宏时,如果出现如下警告:
E:\QT_Project\xingfa_version\xingfa_8_tcp_server\engine\debug\debug_printfFun.cpp:46:
error: 'Q_UNUSED' was not declared in this scope
Q_UNUSED(name);
^
可以包含QT库全局头文件
#include <qglobal.h>