I'm learning in C language. When I compile the following code:
This is the warning that pops up after I build:
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
I have no issues with the code, but why would this message be popping up?
moderators note: please use code tags for pieces of code
Code:
==============================================
#include <pic16/pic18f452.h>
code char at __CONFIG1H conf1 = _OSC_HS_PLL_1H & _OSCS_ON_1H; // Select HS PLL OSC
code char at __CONFIG2L conf2 = _PUT_ON_2L;
code char at __CONFIG2H conf3 = _WDT_OFF_2H; // Disable WDT
code char at __CONFIG4L conf4 = _LVP_OFF_4L; // Disable LVP
void main() {
PORTA = 0;
PORTB = 0;
TRISA |= 0x10;
TRISB &= 0xF0;
PORTB = 0x0A;
while(1) {
if(PORTAbits.RA4 != 0)
PORTB = ~PORTB;
}
}
==============================================
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
I have no issues with the code, but why would this message be popping up?
moderators note: please use code tags for pieces of code
Last edited by a moderator: