summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2000-05-13 04:38:50 +0000
committerjdp <jdp@FreeBSD.org>2000-05-13 04:38:50 +0000
commita5f7814b5d37c6278da169f91b9ac3a048505a7f (patch)
tree961245851933a6af4f4eee856ee8637ac433303e
parent64ad92e4dc5d2a13cffca43449f0647af87d95e0 (diff)
downloadFreeBSD-src-a5f7814b5d37c6278da169f91b9ac3a048505a7f.zip
FreeBSD-src-a5f7814b5d37c6278da169f91b9ac3a048505a7f.tar.gz
Add a comment explaining the obscure lines:
static void const * const __set_##set##_sym_##sym = &sym; in the MAKE_SET macros.
-rw-r--r--sys/sys/linker_set.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/linker_set.h b/sys/sys/linker_set.h
index a4736a5..f6a04ae 100644
--- a/sys/sys/linker_set.h
+++ b/sys/sys/linker_set.h
@@ -34,6 +34,13 @@
* are collected by the linker into a `struct linker_set' as defined below.
* For ELF, this is done by constructing a separate segment for each set.
* For a.out, it is done automatically by the linker.
+ *
+ * In the MAKE_SET macros below, the lines:
+ *
+ * static void const * const __set_##set##_sym_##sym = &sym;
+ *
+ * are present only to prevent the compiler from producing bogus
+ * warnings about unused symbols.
*/
#ifdef __ELF__
OpenPOWER on IntegriCloud