• AVR Freaks

Helpful ReplyHot!Warning (1518) direct function call made with an incomplete prototype

Author
john0bravo
Junior Member
  • Total Posts : 110
  • Reward points : 0
  • Joined: 2017/05/30 00:40:01
  • Location: 0
  • Status: offline
2020/07/06 06:55:31 (permalink)
2 (1)

Warning (1518) direct function call made with an incomplete prototype

Hi, 
 
I get this warning (1518) "direct function call made with an incomplete prototype". How to resolve this ?  
#1
crosland
Super Member
  • Total Posts : 2017
  • Reward points : 0
  • Joined: 2005/05/10 10:55:05
  • Location: Warks, UK
  • Status: offline
Re: Warning (1518) direct function call made with an incomplete prototype 2020/07/06 08:34:13 (permalink) ☄ Helpfulby john0bravo 2020/07/08 00:57:48
+5 (5)
Provide a prototype for the function.
#2
Gort2015
Klaatu Barada Nikto
  • Total Posts : 3984
  • Reward points : 0
  • Joined: 2015/04/30 10:49:57
  • Location: 0
  • Status: offline
Re: Warning (1518) direct function call made with an incomplete prototype 2020/07/06 11:02:43 (permalink)
-1 (1)
Right click on the function, click navigate,
click on Definition or Implementation.
 
It will open the header file and select the prototype.
 
 
Stange though if you click on header nothing happens.

MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
https://www.youtube.com/watch?v=Iu1qa8N2ID0
+ ST:Continues, "What Ships are Made for", Q's back.
#3
ric
Super Member
  • Total Posts : 28006
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: online
Re: Warning (1518) direct function call made with an incomplete prototype 2020/07/06 13:28:03 (permalink)
0
It would be nice to told which compiler you are using, and maybe even shown the offending code...
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#4
1and0
Access is Denied
  • Total Posts : 10999
  • Reward points : 0
  • Joined: 2007/05/06 12:03:20
  • Location: Harry's Gray Matter
  • Status: offline
Re: Warning (1518) direct function call made with an incomplete prototype 2020/07/06 14:26:24 (permalink)
+1 (1)
(1518) * function call made with an incomplete prototype (*) (Code Generator)
 
A function has been called with the compiler not having seen a complete prototype for that function. Check for an empty parameter list in the declaration.

void foo(); // oops -- how will this call be encoded?
void main(void)
{
    foo();
}
#5
Jump to:
© 2020 APG vNext Commercial Version 4.5