Browse Source

ldso/dl-vdso: avoid compiler warning if configured without vdso

The parameters are not used in the function variant without vdso
support, so tell this to the compiler to avoid a warning. Also fix the
indentation to be in-line with other functions in the file.

Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
Marcus Haehnel 9 months ago
parent
commit
6271f8e869
1 changed files with 6 additions and 6 deletions
  1. 6 6
      ldso/ldso/dl-vdso.c

+ 6 - 6
ldso/ldso/dl-vdso.c

@@ -28,14 +28,14 @@
 
 
 #ifndef __VDSO_SUPPORT__
-    void load_vdso(void *sys_info_ehdr, char **envp ){
+void load_vdso( void *sys_info_ehdr attribute_unused,
+                char **envp attribute_unused ){
 #ifdef __SUPPORT_LD_DEBUG__
-        if ( _dl_debug_vdso != 0 ){
-            _dl_dprintf(2,"_dl_vdso support not enabled\n" );
-        }
-
-#endif
+    if ( _dl_debug_vdso != 0 ){
+        _dl_dprintf(2,"_dl_vdso support not enabled\n" );
     }
+#endif
+}
 #else
 
 void *_dl__vdso_gettimeofday  = 0;