8339364: AIX build fails: various unused variable and function warnings

Reviewed-by: mdoerr, clanger, jwaters
This commit is contained in:
Matthias Baesken 2024-09-03 12:02:49 +00:00
parent 7a418fc074
commit 8ea6adc623
14 changed files with 25 additions and 56 deletions

View file

@ -661,11 +661,8 @@ pid_t unix_getParentPidAndTimings(JNIEnv *env, pid_t pid,
void unix_getCmdlineAndUserInfo(JNIEnv *env, jobject jinfo, pid_t pid) {
psinfo_t psinfo;
char fn[32];
char exePath[PATH_MAX];
char prargs[PRARGSZ + 1];
jstring cmdexe = NULL;
int ret;
/*
* Now try to open /proc/%d/psinfo

View file

@ -41,8 +41,6 @@
#include "TimeZone_md.h"
#include "path_util.h"
static char *isFileIdentical(char* buf, size_t size, char *pathname);
#define fileopen fopen
#define filegets fgets
#define fileclose fclose
@ -59,11 +57,8 @@ static const char *DEFAULT_ZONEINFO_FILE = "/usr/share/lib/zoneinfo/localtime";
static const char popularZones[][4] = {"UTC", "GMT"};
#if defined(_AIX)
static const char *ETC_ENVIRONMENT_FILE = "/etc/environment";
#endif
#if defined(__linux__) || defined(MACOSX)
static char *isFileIdentical(char* buf, size_t size, char *pathname);
/*
* remove repeated path separators ('/') in the given 'path'.
@ -356,6 +351,7 @@ getPlatformTimeZoneID()
}
#elif defined(_AIX)
static const char *ETC_ENVIRONMENT_FILE = "/etc/environment";
static char *
getPlatformTimeZoneID()