mirror of
https://github.com/zeldaret/tww.git
synced 2024-11-26 23:01:24 +00:00
clangd: Disable no return statement warning for unlinked TUs
This commit is contained in:
parent
f7d2413a42
commit
f1d73f7fc7
@ -1743,6 +1743,12 @@ config.progress_categories = [
|
||||
]
|
||||
config.progress_each_module = args.verbose
|
||||
|
||||
# Disable missing return type warnings for incomplete objects
|
||||
for lib in config.libs:
|
||||
for obj in lib["objects"]:
|
||||
if not obj.completed:
|
||||
obj.options["extra_clang_flags"].append("-Wno-return-type")
|
||||
|
||||
if args.mode == "configure":
|
||||
# Write build.ninja and objdiff.json
|
||||
generate_build(config)
|
||||
|
Loading…
Reference in New Issue
Block a user