mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
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 <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
41ae68f298
commit
fdee40d8ea
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user