Other Parts Discussed in Thread: MSP430G2553
I am using a LaunchPad with a MSP430G2553 and Code Composer 5.5. I continually get a error about a variable being declared, but unused, even though the variable is used on the next line of code.
I have simplified my code in an attempt to locate the error. Any help is appreciated!!
#include <msp430.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void)
{
const char str[] = "4321";
int value = -1;
value = atoi(str);
}
Error Received
#552-D variable "value" was set but never used