【发布时间】:2017-05-05 06:06:59
【问题描述】:
我使用了以下链接中的代码:
我定义了一个这样的结构
typedef struct {
char *name; /* User printable name of the function. */
Function *func; /* Function to call to do the job. */
char *doc; /* Documentation for this function. */
} COMMAND;
当我编译代码时,编译器会显示以下警告:
“函数已弃用 [-Wdeprecated-declarations]”
那么如果不能使用函数类型应该改什么类型呢?
【问题讨论】:
-
你介意创建一个MCVE吗?
-
您得到的完全准确的错误是什么?
-
看警告信息,它也会告诉你哪个函数被弃用了
标签: c compiler-warnings readline