]> git.ipfire.org Git - thirdparty/vim.git/commit
CI: disable -O2 for Coverity after v9.1.0429
authorChristian Brabandt <cb@256bit.org>
Wed, 22 May 2024 05:53:23 +0000 (07:53 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 22 May 2024 05:56:24 +0000 (07:56 +0200)
commit95ff39f8e3d5e16d4ef55f47d8f50da29df05f9e
treecc664afdc44d346efea883446175e5085ec150d5
parent62ccaa60d5f7f9a13c758bd5e55b7ca6855a6de9
CI: disable -O2 for Coverity after v9.1.0429

gcc -O2 outputs this warning and turns it into an error when running
Coverity action:

```
eval.c: In function ‘echo_string_core’:
cc1: warning: function may return address of local variable [-Wreturn-local-addr]
eval.c:6495:12: note: declared here
 6495 |     char_u buf[MAX_FUNC_NAME_LEN];
      |            ^~~
```

This seems to be a false positive, so disable -O2 for Coverity
specifically.

Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/workflows/coverity.yml