Skip to content

Commit c5c2757

Browse files
ejaquayejaquay
authored andcommitted
mc6809 Quiet legacy (VC2015) compiler int to bool warning
Changing the CC registor to bool array caused C4800 warnings when using Visual C 2015 compiler. Added pragma to turn the warning off. (This warning is off by default on compilers since Visual C 2017) +
1 parent 0806f0b commit c5c2757

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mc6809.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ This file is part of VCC (Virtual Color Computer).
3333
#define OTEST16(c,a,b,r) c ^ (((a^b^r)>>15)&1);
3434
#define ZTEST(r) !r;
3535

36+
// Quiet legacy compiler warning about forcing int value to bool
37+
#pragma warning( disable : 4800 )
38+
3639
typedef union
3740
{
3841
unsigned short Reg;

0 commit comments

Comments
 (0)