From 0f23774d2f5a0e5eb43c67b8694793ba13d91a41 Mon Sep 17 00:00:00 2001 From: jesusc Date: Mon, 1 Sep 2003 17:13:58 +0000 Subject: [PATCH] #warning does not work in MSVC. Used "#pragma message" instead. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2867 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/pic16/pcode.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pic16/pcode.c b/src/pic16/pcode.c index d03ae85c..b1823026 100644 --- a/src/pic16/pcode.c +++ b/src/pic16/pcode.c @@ -5963,7 +5963,11 @@ static void pic16_FixRegisterBanking(pBlock *pb) } #endif -#warning Fix this if-conditional +#if !defined(__BORLANDC__) && !defined(_MSC_VER) + #warning Fix this if-conditional +#else + #pragma message( "warning Fix this if-conditional" ) +#endif /* the !(reg->rIdx==-1) is a temporary hack. It should be changed - VR 6-Jun-2003 */ if( ( (reg /*&& !(reg->rIdx==-1)*/ && !isACCESS_BANK(reg) && (isBankInstruction(pc)==-1) && !(reg->alias == 0x80) ) /*|| (PCI(pc)->op != POC_CALL)*/ ) -- 2.47.2