]> git.saurik.com Git - apple/libc.git/blobdiff - sys/crt_externs.c
Libc-1439.100.3.tar.gz
[apple/libc.git] / sys / crt_externs.c
index b739e4089bba5ef9934da9ba9febc69890556c89..982e2db00839dbad7badab975d82ec48f5039bd2 100644 (file)
@@ -33,7 +33,7 @@
         static type * var ## _pointer = 0
 #define DECLARE_PROGNAME(var, type)                            \
         static type * var ## _pointer = 0;                     \
-        static type _priv_ ## var = 0
+        __unused static type _priv_ ## var = 0
 #define USE_VAR(var) (var ## _pointer)
 #else
 #define DECLARE_VAR(var, type) extern type var
@@ -82,8 +82,9 @@ struct ProgramVars
 
 
 /*
- * dyld calls libSystem_initializer() and passes it a ProgramVars struct containing pointers to the
- * main executable's NXArg* global variables. libSystem_initializer() calls __libc_init() which calls
+ * dyld calls libSystem_initializer() and passes it a ProgramVars struct
+ * containing pointers to the main executable's NXArg* global variables.
+ * libSystem_initializer() calls _libc_initializer() which calls
  * _program_vars_init() passing the ProgramVars parameter.
  */
 void __attribute__((visibility("hidden")))