Take advantage of clang-3.9 new nonnull attribute#1370
Take advantage of clang-3.9 new nonnull attribute#1370thk123 wants to merge 1 commit intodiffblue:developfrom
Conversation
|
LGTM but IMO the .travis.yml should also be updated to use clang-3.9 explicitly |
|
Already done by #1364. |
|
@kroening compare #1369, which ignores the warning as not applicable to a library solely for CBMC's internal consumption. It's a shame to remove |
|
This version on the other hand is wrong I think, since it will silently accept |
|
As pointed out, this is addressed (better) in other PRs. |
|
@smowton The idea is the following: the optimisation can be put back in once we add a precondition that says that the parameters must point to zero-terminated strings. |
Builds had started failing on Travis due to an upgrade to clang-3.9:
https://travis-ci.org/diffblue/cbmc/jobs/274155578#L799
Spotted by @smowton