Problem with "problems"

leonp at plris.com leonp at plris.com
Thu Sep 21 11:20:43 BST 2006


Hello, all.
I upgraded to the 3.3.92 and have the folllowing strange case:
All project files (C++) pass compilation without any problem - no errors and 
warnings.
But "problems" dialog says there are 15 problems in 10 lines.
The code is as below:
---------------------------------
79:char Str[STR_STAT_LEN];
80:StatusStruct& Status=StatusFDR.GetStatus();
81:	if (Status.CassetteA_In) {
		if (Status.CassetteA_End)	strcpy(Str, "\017Cst1:full");
		else strcpy(Str, "\017Cst1:OK"); }
	else strcpy(Str, "\017Cst1:No");
	for(uint i = 1; i < Channel::TotalChannelsInUse; i++) {
		if (pChannels[i]->GetChannelID() != 0)
			strncat(Str, pChannels[i]->GetVerboseStatus(), STR_STAT_LEN - 
strlen(Str)); };
	CmndUDP.Send(Str, strlen(Str));
89:}
90:
-------------------------------------
The error messages in "problems" are, for example:
Error line 80 column 1 	']' expected, fgound 'StatusStruct'.			(3 times)
Error line 81 column 2	':' expected found 'if'				(3 times)
Error line 89  column 1	':' expected found 'if'				(3 times)
Error line 89  column 1	statement expected				(3 times)
Error line 90  column 1	'}' expected					(3 times)

What should it be?
-- 
Leon




More information about the KDevelop mailing list