-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
I noticed the following compiler warning:
../omr-agentcore/src/ibmras/monitoring/connector/headless/HLConnector.cpp: In member function 'void ibmras::monitoring::connector::headless::HLConnector::startNewTempDir()':
../omr-agentcore/src/ibmras/monitoring/connector/headless/HLConnector.cpp:206:40: warning: ignoring return value of 'char* getcwd(char*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
getcwd(cDirectory, sizeof(cDirectory));
cDirectory is used afterwards but will contain stack garbage if getcwd() failed.