View Single Post
  #3   Spotlight this post!  
Unread 02-02-2005, 21:59
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: strange warning when build program

Quote:
Originally Posted by PVC Pirates
" file path : line number : Warning [2058] call of function without prototype ".
My guess is you have something as follows...

Code:
#include "user_common.h"
main
{
  foo();
}

void foo(void)
{
 // Do something
}
Try adding a function prototype for foo() to your user_common.h file.
Code:
void foo(void);
From this article
Quote:
A declaration or prototype is a way of telling the compiler the data types of the any return value and of any parameters, so it can perform error checking.
Essentially your compiler is complaining that you're using a function that it doesn't know about.