首页 > 技术文章 > Qt ------ Q_UNUSED

god-of-death 2018-01-23 09:43 原文

Q_UNUSED(name)

Indicates to the compiler that the parameter with the specified name is not used in the body of a function. This can be used to suppress compiler warnings while allowing functions to be defined with meaningful parameter names in their signatures.

推荐阅读