]> xenbits.xensource.com Git - unikraft/libs/libcxx.git/commit
Assign `-Wno-keyword-compat` to clang only
authorSimon Kuenzer <simon@unikraft.io>
Thu, 31 Aug 2023 09:22:34 +0000 (11:22 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 31 Aug 2023 13:59:04 +0000 (13:59 +0000)
commit22dbf3d4478cacdb5bf0ee51841419e9a921c649
tree8a12218e5d87a6377f62b25c58b1acb285c06a3a
parent6aa8f986d1413e97556d28a4feb557d4168d55c1
Assign `-Wno-keyword-compat` to clang only

The compiler flag `-Wno-keyword-compat` is not recognized by GCC, but by
clang. Although it does not harm the resulting compilation unit (GCC has a
special handling of `-Wno-*` flags), an additional warning message is issued if
a compilation unit fails or produces other warnings:

```
At global scope:
cc1plus: note: unrecognized command-line option '-Wno-keyword-compat' may have been intended to silence earlier diagnostics
```

This commit assigns `-Wno-keyword-compat` to clang only.

Signed-off-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #35
Makefile.uk