We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am just learning C by starting on modifying an example program to do what I want it to do. But immediately get warning messages although the compiled program runs fine. Whenever I declare a variable I get the following warnings.
Measure.c(153): warning: #550-D: variable "Minn_flag" was set but never used Measure.c(62): warning: #550-D: variable "Ret_flags" was set but never used
Ret_Flags is declare as a global at the head of a file, and used in two functions. Minn_flag is declared inside a function and used once. I dont understand because I am declaring and using variables right alongside others already used in the example. Those variables dont get errors, but mine do. I am sure it's basic but what am I doing wrong?
Thanks!
Thanks for the info. But I will stay with the integrated editor for now, unless there are big reasons not to. It's bad enough trying to learn C, the environment, the quirks and the ARM chip itself. I spent a few hours the other day trying to get the RTOS working only to find out that the standard Startup.S wont work as is. I am more experienced in Forth and the 8051 family.
So far the /* ... */ editing is working fine the compiler has not wobbled or done anything unexpected.
Have a good weekend.
Dont know what happened to the linebreaks the preview looked OK before I posted it.