这是我的代码:
#include <sys/types.h>
#include <stdio.h>
#include <dirent.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
int main(int argc, char** argv) {
sigignore(SIGTERM);
return 0;
}
为什么我会收到以下警告以及如何删除它?
implicit declaration of function ‘sigignore’ [-Wimplicit-function-declaration] sigignore(SIGTERM);
程序必须按如下方式编译:gcc -o foo.o foo.c
。
谢谢
最佳答案
关于c - 处理警告: implicit declaration of function ‘sigignore’ ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36696318/