Date: Tue, 21 Nov 2023 15:12:51 +0100 From: Mehdi Khawari <iam.mehdikhawari@gmail.com> To: freebsd-questions@freebsd.org Subject: What are __dead2 and __unused in the source code? Message-ID: <CACDe3ozkC9W4cJzGGUFYxFvKK8hTY7WaWyXb=BSUdi4d-xgd5w@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, everyone! I'm just learning by studying the source code of some basic tools included in the base and I had a question. Why is __dead2 applied to some function like usage? static void usage(void) __dead2; What is the reason that __unused is applied to the function argument like here: static void siginfo_handler(int sig __unused) { siginfo = 1; } These snippets are from /bin/chmod/chmod.c. Where can I find more information on this? Kind regards Mehdi Khawari
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACDe3ozkC9W4cJzGGUFYxFvKK8hTY7WaWyXb=BSUdi4d-xgd5w>