如何在keil中增加自己写的头文件,为什么我在调用自己写的函数时会有警告
下面是头文件:/***************************************/#ifndef__IIC_H__#define__IIC_H__#defi...
下面是头文件:/***************************************/
#ifndef __IIC_H__
#define __IIC_H__
#define uchar unsigned char
#define uint unsigned int
extern void delay();
extern void unit();
extern void start_iic();
extern void stop_iic();
extern bit write_byte(uchar c);
extern void Ack(uchar a);
extern bit write_add(uchar add,uchar sadd,uchar s);
extern uchar read_byte();
extern uchar read_add(uchar add,uchar sadd);
#endif
/***************************************/
compiling at24c02.c...
AT24C02.C(8): warning C275: expression with possibly no effect
at24c02.c - 0 Error(s), 1 Warning(s).
下面是程序
#include<reg52.h>
#onclude<IIC.H>
#define uint unsigned int
#define uchar unsinged char
void main()
{
unit();//这儿有括号,是调用一个函数怎么会没意义呢
} 展开
#ifndef __IIC_H__
#define __IIC_H__
#define uchar unsigned char
#define uint unsigned int
extern void delay();
extern void unit();
extern void start_iic();
extern void stop_iic();
extern bit write_byte(uchar c);
extern void Ack(uchar a);
extern bit write_add(uchar add,uchar sadd,uchar s);
extern uchar read_byte();
extern uchar read_add(uchar add,uchar sadd);
#endif
/***************************************/
compiling at24c02.c...
AT24C02.C(8): warning C275: expression with possibly no effect
at24c02.c - 0 Error(s), 1 Warning(s).
下面是程序
#include<reg52.h>
#onclude<IIC.H>
#define uint unsigned int
#define uchar unsinged char
void main()
{
unit();//这儿有括号,是调用一个函数怎么会没意义呢
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询