Rate This Document
Findability
Accuracy
Completeness
Readability

Constant Initialization Failure

Symptom

OS: CentOS 7.6.1810

When GCC 4.8.5-36 is used for compilation, constant initialization fails and the following information is displayed. This problem does not occur in GCC 4.8.5-44.

Figure 1 Error information

Solution

Remove the content before the constant values in the kswx.h and wtzmo.c files.

  • The modified kswx.h file is as follows:
    1
    2
    36 static const kswr_t KSWR_NULL = {0,0,0,0,0,0,0};
    37 static const kswx_t KSWX_NULL = {0,0,0,0,0,0,0,0,0,0};
    
  • The modified wtzmo.c file is as follows:
    1
    70 static const sr_seed_t SR_SEED_NULL = (sr_seed_t){0,0,0,0,0,0,0,{0,0},{0,0},{0,0},0,0,0};