commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 61/75: fix compiler warning in hurd/fstests


From: Samuel Thibault
Subject: [hurd] 61/75: fix compiler warning in hurd/fstests
Date: Thu, 14 Jan 2016 01:04:11 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch dde
in repository hurd.

commit a526d06131bdba4080c7c22ceebc1c73c403b8b4
Author: Flavio Cruz <address@hidden>
Date:   Thu Dec 31 17:26:21 2015 +0100

    fix compiler warning in hurd/fstests
    
    * fstests/fstests.c (main): Only declare 'root' when HURDISH_TESTS is
    defined.
---
 fstests/fstests.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/fstests/fstests.c b/fstests/fstests.c
index c652a70..c71b13a 100644
--- a/fstests/fstests.c
+++ b/fstests/fstests.c
@@ -42,8 +42,8 @@ int check_refs (mach_port_t port) /* To call from gdb */
 int
 main ()
 {
-  mach_port_t root;
 #if HURDISH_TESTS
+  mach_port_t root;
   extern file_t *_hurd_init_dtable;
   char string[] = "Did this get into the file?\n";
   file_t filetowrite;
@@ -53,7 +53,11 @@ main ()
   error_t err;
 #endif
 
+#ifdef HURDISH_TESTS
   root = getcrdir ();
+#else
+  (void) getcrdir ();
+#endif
 
   printf ("fstests running...\n");
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]