Skip to content
Commit 499a29dd authored by ThuBaNguyen's avatar ThuBaNguyen Committed by Thu Nguyen
Browse files

softoff: Fix the CI error



The CI for new patch set report errors in softoff code.

'''
../softoff/softoff.cpp: In member function 'int pldm::SoftPowerOff::getSensorInfo()':
../softoff/softoff.cpp:263:14: error: 'pdr' may be used uninitialized [-Werror=maybe-uninitialized]
  263 |         auto possibleStatesStart = pdr->possible_states;
      |              ^~~~~~~~~~~~~~~~~~~
../softoff/softoff.cpp:249:32: note: 'pdr' was declared here
  249 |         pldm_state_sensor_pdr* pdr;
cc1plus: all warnings being treated as errors
'''

Update code to fix that.

Signed-off-by: default avatarThuBaNguyen <thu@os.amperecomputing.com>
Change-Id: Ib9df9f79978941ebad62164866cc688412a08922
parent f411742d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment