惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
V
Vulnerabilities – Threatpost
A
Arctic Wolf
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
Hugging Face - Blog
Hugging Face - Blog
H
Hacker News: Front Page
D
Docker
人人都是产品经理
人人都是产品经理
Attack and Defense Labs
Attack and Defense Labs
Forbes - Security
Forbes - Security
I
InfoQ
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
aimingoo的专栏
aimingoo的专栏
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Simon Willison's Weblog
Simon Willison's Weblog
腾讯CDC
WordPress大学
WordPress大学
T
Tenable Blog
P
Proofpoint News Feed
月光博客
月光博客
T
Tor Project blog
The Cloudflare Blog
罗磊的独立博客
S
Secure Thoughts
Application and Cybersecurity Blog
Application and Cybersecurity Blog
The Hacker News
The Hacker News
P
Palo Alto Networks Blog
I
Intezer
小众软件
小众软件
N
News | PayPal Newsroom
V
Visual Studio Blog
L
LINUX DO - 最新话题
W
WeLiveSecurity
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Troy Hunt's Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园_首页
D
DataBreaches.Net
P
Privacy International News Feed
博客园 - 三生石上(FineUI控件)
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Security Affairs
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
阮一峰的网络日志
阮一峰的网络日志

博客园 - karlchen

新一代工程科研效率协同平台peerup [转]RTH试用手记之“额外功能” [转发]RTH试用手记之“外场应用” [转]RTH试用手记之“偶发信号观测” [转载]放大器参数测试 [转载]使用实时频谱分析仪观测偶发信号的几点优势 [转载]基于频谱分析仪的滤波器参数测试 [转载]利用近场探头和频谱仪查找EMI辐射问题 [示波器,学学吧]如何测试示波器的刷新率 [VDSP中的Warning]explicit type is missing [VDSP中的Warning]integer conversion resulted in a change of sign 如何设置VISIO里的交叉线 关于Norton升级造成系统崩溃问题的解决办法 Matlab中添加高斯白噪声 [转贴]分贝是个什么东西?(好东东) VB6.0不支持鼠标滚轮的解决办法 色环电阻的读法 Windows CE.NET Core OS 特性详解(三)----通讯服务及网络 【收购】LSI 40亿美元并购Agere
[VDSP中的Warning]function declared implicitly
karlchen · 2008-09-23 · via 博客园 - karlchen

不仅仅在VDSP的编程环境中,可能大部分程序员都会很经常看到下述Warning提示

    warning: function declared implicitly

原因就是函数没有声明,大部分情况下,也不影响函数的正常使用,所以往往被大家忽略,实际上,也是很危险的事情,比如如下的一个例子 

#include <stdlib.h>

#include <stdio.h>

int main(void)

    {

    int i;

    i = foo (2, 3);

    printf ("foo returns %d\n", i);

    exit(0);

    }

int foo (int a)

    {

        return (a+a);

    }

解决这样的问题,就是添加函数声明,如在源文件头添加声明

#include <stdlib.h>

#include <stdio.h>

int foo (int a);

int main(void);

int main(void)

    {

    int i;

    i = foo (2, 3);

    printf ("foo returns %d\n", i);

    exit(0);

    }

int foo (int a)

    {

        return (a+a);

    }

       编译看看,就会发现出现这样的错误

error: too many arguments in

          function call

是不是很恐怖 ???