Mercurial > vim
annotate runtime/indent/cuda.vim @ 35238:f8623bd12e17 default tip
CI: disable -O2 for Coverity after v9.1.0429
Commit: https://github.com/vim/vim/commit/95ff39f8e3d5e16d4ef55f47d8f50da29df05f9e
Author: Christian Brabandt <cb@256bit.org>
Date: Wed May 22 07:53:23 2024 +0200
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 22 May 2024 08:00:06 +0200 |
parents | 4027cefc2aab |
children |
rev | line source |
---|---|
2034 | 1 " Vim indent file |
2 " Language: CUDA | |
32770
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
3 " Maintainer: The Vim Project <https://github.com/vim/vim> |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
4 " Last Change: 2023 Aug 10 |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
5 " Former Maintainer: Bram Moolenaar <Bram@vim.org> |
2034 | 6 |
7 " Only load this indent file when no other was loaded. | |
8 if exists("b:did_indent") | |
9 finish | |
10 endif | |
11 let b:did_indent = 1 | |
12 | |
13 " It's just like C indenting | |
14 setlocal cindent | |
15 | |
16 let b:undo_indent = "setl cin<" |