diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-04-29 09:41:30 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-05-20 16:29:13 +0200 |
commit | d3fc80abfc71dbe6e74bdf2af09df328380096a8 (patch) | |
tree | dc8b4805073f8f030c9c1ee4713157ae371a0144 /util/check-format-test-negatives.c | |
parent | 9ad9002dd5f705d528ae20acb0e1b53767cde3dd (diff) |
check-format.pl: Fix false positive on struct/union/enum in func return type
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15077)
Diffstat (limited to 'util/check-format-test-negatives.c')
-rw-r--r-- | util/check-format-test-negatives.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/util/check-format-test-negatives.c b/util/check-format-test-negatives.c index 89b8b19c2e..c73cc04695 100644 --- a/util/check-format-test-negatives.c +++ b/util/check-format-test-negatives.c @@ -273,11 +273,12 @@ static varref cmp_vars[] = { /* comment. comment? comment! */ /* comment */ \ } -/* 'struct' in function header */ -static int f(struct pem_pass_data *pass_data) +union un var; /* struct/union/enum in variable type */ +struct provider_store_st *f() /* struct/union/enum in function return type */ +{ +} +static void f(struct pem_pass_data *data) /* struct/union/enum in arg list */ { - if (pass_data == NULL) - return 0; } static void *fun(void) |