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

include problem

******************* task.h ******************
#ifndef __TASK_H__
#define __TASK_H__

# include "SDA55XX.H"
# include "RC_CODES.H"
# include "CONSTANT.H"
# include "inouts.h"
# include "osd.h"
# include "video.h"
# include "tuning.h"
# include "sound.h"
# include "teletext.h"
# include "i2crout.h"
# include "timer.h"
# include "service.h"
# include "mains.h"

extern void Red_Marktask_IR(void);
extern void Menu_Marktask_IR(void);
extern void GDW_OSD_MODE(void);
extern void Text_Off(void);
extern void Text_Marktask_IR(void);
extern void TV_Marktask_IR(void);
extern void MarkTaskIR (void);
extern void OK_Marktask_IR(void);
extern void Volume_Up_Aiwa(void);
extern void Up_Down_Hiz_Control(void);
extern void Volume_Up_Marktask_IR(void);
extern void Volume_Down_Aiwa(void);
extern void Volume_Down_Marktask_IR(void);
extern void Page_Down_Marktask_IR(void);
extern void Page_Down_Aiwa(void);
extern void Page_Up_Marktask_IR(void);
extern void Page_Up_Aiwa(void);

#endif

******************mains.h*******************
#ifndef __MAINS_H__
#define __MAINS_H__

# include <SDA55XX.H>
# include <RC_CODES.H>
# include <CONSTANT.H>
# include <string.h>
# include "INTRINS.H"
# include "inouts.h"
# include "osd.h"
# include "video.h"
# include "tuning.h"
# include "sound.h"
# include "i2crout.h"
# include "timer.h"
# include "task.h"
# include "ints.h"
....
******************************************

I'm calling several function defined in task.c from mains.c but compiler produce a warning for 3 function the following warning

..\MAINS.C(476): warning C206: 'Page_Down_MarkTask_IR': missing function-prototype
..\MAINS.C(486): warning C206: 'Volume_Up_MarkTask_IR': missing function-prototype
..\MAINS.C(497): warning C206: 'Volume_Down_MarkTask_IR': missing function-prototype

but I also use Menu_Marktask_IR() in mains.c function which declared in task.h for this function no warning and for 3 functions above compiler produce warning.

Somebody have an idea

0