Silverfrost Forums

Welcome to our forums

SCC /64 gives spurious warning

14 Dec 2016 2:56 #18549

The 64-bit SCC V 3.78 compiler gives many false warnings for code containing if-then-else and switch statements.

#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:

s:\LANG>scc /64 cbug.c

Compiler says:

[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]

19 Dec 2016 2:56 (Edited: 19 Dec 2016 7:17) #18579

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.

Please login to reply.