From fdee40d8eac5466dff3969183debd422df60c269 Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Sat, 16 Jan 2010 16:29:10 -0500 Subject: [PATCH] up.c: remove unused variable pageSize Variable pageSize is declared and set to the system page size using getpagesize(), but the value is not used anywhere. getpagesize() doesn't necessarily have a prototype declared in unistd.h with recent glibc, which can generate a new warning and trip up an enabled-checking build. Instead of trying to put in a workaround, just remove the unused variable. Change-Id: I6a9519eb2642bb0479edd1cf1195ce3f751c72bb Reviewed-on: http://gerrit.openafs.org/1117 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/venus/up.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/venus/up.c b/src/venus/up.c index 8a4ad6f0ba..782075550e 100644 --- a/src/venus/up.c +++ b/src/venus/up.c @@ -60,7 +60,6 @@ short preserveDate = 1; short preserveMountPoints = 0; short forceOverwrite = 0; -int pageSize; short setacl = 1; short oldAcl = 0; char file1[MAXPATHLEN], file2[MAXPATHLEN]; @@ -104,9 +103,6 @@ main(int argc, char *argv[]) nsa.sa_handler = SIG_DFL; nsa.sa_flags = SA_FULLDUMP; sigaction(SIGSEGV, &nsa, NULL); -#endif -#if !defined (AFS_AIX_ENV) && !defined (AFS_HPUX_ENV) - pageSize = getpagesize(); #endif ScanArgs(argc, argv);