[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
- [hurd] 38/75: fix compiler warnings in hurd/ext2fs, (continued)
- [hurd] 38/75: fix compiler warnings in hurd/ext2fs, Samuel Thibault, 2016/01/13
- [hurd] 39/75: fix compiler warnings in hurd/console-client, Samuel Thibault, 2016/01/13
- [hurd] 51/75: Include missing header file in hurd/proc, Samuel Thibault, 2016/01/13
- [hurd] 34/75: boot: Fix boot.c compiler warning., Samuel Thibault, 2016/01/13
- [hurd] 53/75: fix compiler warnings in hurd/startup, Samuel Thibault, 2016/01/13
- [hurd] 36/75: fix compiler warnings in hurd/daemons, Samuel Thibault, 2016/01/13
- [hurd] 37/75: fix compiler warnings in hurd/exec, Samuel Thibault, 2016/01/13
- [hurd] 44/75: fix compiler warnings in hurd/libihash, Samuel Thibault, 2016/01/13
- [hurd] 42/75: fix compiler warnings in hurd/isofs, Samuel Thibault, 2016/01/13
- [hurd] 43/75: fix compiler warnings in hurd/libftpconn, Samuel Thibault, 2016/01/13
- [hurd] 61/75: fix compiler warning in hurd/fstests,
Samuel Thibault <=
- [hurd] 45/75: fix compiler warnings in hurd/libnetfs, Samuel Thibault, 2016/01/13
- [hurd] 59/75: Use DEVICE_IMPORTS to include libports/ports.h, Samuel Thibault, 2016/01/13
- [hurd] 46/75: fix compiler warnings in hurd/libshouldbeinlibc, Samuel Thibault, 2016/01/13