forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SCC /64 gives spurious warning

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
mecej4



Joined: 31 Oct 2006
Posts: 1885

PostPosted: Wed Dec 14, 2016 3:56 pm    Post subject: SCC /64 gives spurious warning Reply with quote

The 64-bit SCC V 3.78 compiler gives many false warnings for code containing if-then-else and switch statements.
Code:
#include <stdio.h>
int main(void){
int i,j;

i=11;
if(i > 5)j=3; else j=4;
if(i < 7)j=j*2;
printf("%d %d\n",i,j);
}

Compile:
Quote:
s:\LANG>scc /64 cbug.c

Compiler says:
Quote:
[Silverfrost SCC/WIN32 Ver 3.88 Copyright (c) Silverfrost Ltd 2016]
0006 if(i > 5)j=3; else j=4;
WARNING - This statement will never be executed
NO ERRORS, 1 WARNING [<CBUG> SCC/WIN32 Ver 3.88]
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1885

PostPosted: Mon Dec 19, 2016 3:56 pm    Post subject: Reply with quote

This is a duplicate of a report at http://forums.silverfrost.com/viewtopic.php?p=20777#20777 . Please see that thread for Paul's response of 19th December 2016.

Last edited by mecej4 on Mon Dec 19, 2016 8:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Mon Dec 19, 2016 7:58 pm    Post subject: Reply with quote

20th Dec ... i.e. tomorrow !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group