GCC compiler warning flag for zero variadic macro arguments

后端 未结 1 407
旧时难觅i
旧时难觅i 2021-01-22 23:35

What is the compiler warning flag for zero variadic macro arguments in GCC (I am using GCC 5.3.0)?

The warning is triggered by code like this

// for illu         


        
1条回答
  •  后悔当初
    2021-01-23 00:16

    The warning flag that is causing the issue is -Wpedantic. This is because omitting variadic arguments is illegal and it requires a diagnostic. A warning satisfies that requirement.

    0 讨论(0)
提交回复
热议问题