Compiler for C supports arguments -Wno-documentation-deprecated-sync -Wdocumentation-deprecated-sync: N
时间: 2023-07-08 16:05:01 浏览: 149
broccoli-closure-compiler:使用Closure编译器缩小JavaScript
The flags -Wno-documentation-deprecated-sync and -Wdocumentation-deprecated-sync are related to the documentation generation process in Clang.
The -Wno-documentation-deprecated-sync flag disables warnings for deprecated synchronization functions in the documentation. This can be useful if you are generating documentation for legacy code that still uses these functions.
The -Wdocumentation-deprecated-sync flag enables warnings for deprecated synchronization functions in the documentation. This can be useful if you want to ensure that your code is using up-to-date synchronization functions.
The value N that you mentioned is not a valid argument for these flags. These flags are boolean flags, which means that they are either enabled (-Wdocumentation-deprecated-sync) or disabled (-Wno-documentation-deprecated-sync). If you want to enable or disable these flags, you can pass them as arguments to the compiler with the appropriate prefix (-W or -Wno). For example:
To enable the -Wdocumentation-deprecated-sync flag:
```
$ clang -Wdocumentation-deprecated-sync ...
```
To disable the -Wdocumentation-deprecated-sync flag:
```
$ clang -Wno-documentation-deprecated-sync ...
```
阅读全文