Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jul 2023 16:51:05 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6d099821455d - main - Mark usage function as __dead2 in programs where it does not return
Message-ID:  <202307071651.367Gp5xg010584@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=6d099821455df24fcf5b88ba0d83cccf822d970b

commit 6d099821455df24fcf5b88ba0d83cccf822d970b
Author:     Alfonso Gregory <gfunni234@gmail.com>
AuthorDate: 2023-07-07 16:39:23 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-07-07 16:45:17 +0000

    Mark usage function as __dead2 in programs where it does not return
    
    In most cases, usage does not return, so mark them as __dead2. For the
    cases where they do return, they have not been marked __dead2.
    
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/735
---
 sys/dev/aic7xxx/aicasm/aicasm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/aic7xxx/aicasm/aicasm.c b/sys/dev/aic7xxx/aicasm/aicasm.c
index 5f2fbaa8b645..886c29a290a3 100644
--- a/sys/dev/aic7xxx/aicasm/aicasm.c
+++ b/sys/dev/aic7xxx/aicasm/aicasm.c
@@ -75,7 +75,7 @@ typedef struct patch {
 
 STAILQ_HEAD(patch_list, patch) patches;
 
-static void usage(void);
+static void usage(void) __dead2;
 static void back_patch(void);
 static void output_code(void);
 static void output_listing(char *ifilename);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307071651.367Gp5xg010584>