[mikroC v.7.0.0.3] parameters declaration

Discuss about beta versions of mikroC compiler.
Post Reply
Author
Message
bruno
Posts: 767
Joined: 10 Sep 2005 02:10
Location: Lyon, France
Contact:

[mikroC v.7.0.0.3] parameters declaration

#1 Post by bruno » 30 Sep 2007 22:58

Hello,

compiler does not warn if parameters declaration is mismatched to prototype in the same file :

Code: Select all

void    dummy(const char c) ;

void    dummy(char c)
        {
        PORTB = c ;
        }
        
void    main()
        {
        dummy(1) ;
        }
compiles without notification :?
Bruno
Bored with 7-segment ? Try the [url=http://www.micro-examples.com/public/microex-navig/doc/079-touchclock.html]TouchClock[/url]

User avatar
rajkovic
mikroElektronika team
Posts: 694
Joined: 16 Aug 2004 12:40

Re: [mikroC v.7.0.0.3] parameters declaration

#2 Post by rajkovic » 01 Oct 2007 10:43

bruno wrote:Hello,

compiler does not warn if parameters declaration is mismatched to prototype in the same file :

Code: Select all

void    dummy(const char c) ;

void    dummy(char c)
        {
        PORTB = c ;
        }
        
void    main()
        {
        dummy(1) ;
        }
compiles without notification :?
we will fix this.

Post Reply

Return to “mikroC Beta testing”