Feature #10924
closed
Update Clade to do not filter out options enabling error messages about implicit function declarations
Added by Evgeny Novikov about 3 years ago.
Updated about 3 years ago.
Category:
Tasks generation
Description
Sometimes users forget to add declarations for functions invoked in their models, e.g. by including appropriate headers. This can result in weird failures and trash during running Frama-C (CIL) or even later at verification (this will not the case after updating CIF - https://forge.ispras.ru/issues/10927).
Unfortunately, we can not turn on something like "-Wall -Werror" since models can include project headers and GCC may report errors for them while we would not like to fix them. We can try to consider those "-Werror" options that are used for building the Linux kernel or any other projects since these options should not result in any extra errors for headers while they can do so for models.
Hopefully, Clade 3.4.8 does not filter out options enabling error messages about implicit function declarations. So, we need to update it and fix appropriate errors if so.
- Subject changed from Turn on "-Werror=implicit-function-declaration" at processing of all kinds of models to Try to enable "-Wall -Wextra" at processing of all kinds of models
- Description updated (diff)
- Subject changed from Try to enable "-Wall -Wextra" at processing of all kinds of models to Try to enable "-Wall -Werror" at processing of all kinds of models
- Blocks Feature #10926: Try to enable "-Wextra -Werror" at processing of all kinds of models added
- Blocks deleted (Feature #10926: Try to enable "-Wextra -Werror" at processing of all kinds of models)
- Subject changed from Try to enable "-Wall -Werror" at processing of all kinds of models to Try to enable Linux kernel "-Werror" options at processing of all kinds of models
- Description updated (diff)
- Subject changed from Try to enable Linux kernel "-Werror" options at processing of all kinds of models to Update Clade to do not filter out options enabling error messages about implicit function declarations
- Description updated (diff)
- Status changed from New to Closed
It turned out that existing models missed the only function declaration for external_allocated_data(). After adding it tests passed, so, I merged the branch to master in 16e070124.
Also available in: Atom
PDF