NNVM代码阅读

op.h

#define DMLC_ATTRIBUTE_UNUSED __attribute__((unused))

__attribute__((unused)):通常,如果声明了某个变量,但从未对其进行引用,编译器将发出警告。此属性指示编译器您预计不会使用某个变量,并指示它在未使用该变量时不要发出警告。

void Variable_Attributes_unused_0()
{
    static int aStatic =0;
    int aUnused __attribute__ ((unused));
    int bUnused;
    aStatic++;
}

--


posted @ 2017-09-02 16:15  Key_Ky  阅读(341)  评论(0编辑  收藏  举报