打算将在VS和LINUX编译成功的算法移植到dsp中,先在ccs中编译,遇到了警告,下面是相关的代码:
typedef enum
{ FILTERBUFFER_OK,
FILTERBUFFER_MEMORY_ALLOCATION_FAILED,
FILTERBUFFER_SIZEERROR,
FILTERBUFFER_NOTINITIALIZED
}FILTERBUFFER_ERRORCODE;
typedef enum
{ LPCANALYSIS_OK,
LPCANALYSIS_MEMORY_ALLOCATION_FAILED,
LPCANALYSIS_SIZEERROR,
LPCANALYSIS_NOTINITIALIZED
}LPCANALYSIS_ERRORCODE;
FILTERBUFFER_ERRORCODE ErrorCode=FILTERBUFFER_OK;
if(PHand->pdSynthBuffer==NULL) ErrorCode=LPCANALYSIS_MEMORY_ALLOCATION_FAILED;//这里出现了警告 warning: enumerated type mixed with another type
是枚举类型与其它类型混用,是ErrorCode的问题,不过不知道该如何解决这个问题 |