This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

declaration after function call

I just started using kile c51 compiler with µVision.
My problem is only a stylistic issue.

While initializing my controler:
<dir>

  unsigned char dummy1 = 0xFF;
  /* call openADC0 */
  openADC0( dummy1 );

  unsigned char dummy2 =  0xFF;
  /* call openADC0 */
  openUART0( dummy2 );
</dir>
Why am I not allowed to daclare another
variable, after I called a function! ;(

Is there any compiler optimization I can use?

Regards
J.

Parents Reply Children