-
Bug
-
Resolution: Fixed
-
Urgent
-
PDK
-
PDK-14259
-
PROCESSOR_SDK_09.02.00
-
-
Description
gSciclientHandle was 0 initialized in the following manner:
Sciclient_ServiceHandle_t gSciclientHandle = (Sciclient_ServiceHandle_t)0;
This resulted in a GHS compiler error:
".../packages/ti/drv/sciclient/src/sciclient/sciclient.c", line 128 (col. 5): warning #520-D: initialization with "
" expected for aggregate object
".../packages/ti/drv/sciclient/src/sciclient/sciclient.c", line 128 (col. 5): error #28: expression must have a constant value
Resolution
The handle is now initialized as:
Sciclient_ServiceHandle_t gSciclientHandle = 0;
Root Cause
GHS compiler doesn't support compounded literal init for structs