首页 > 其他分享 >warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

时间:2023-02-07 08:57:35浏览次数:37  
标签:different Wint cast warning pointer size

main.c:10:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

主要原因是在源文件中没有声明函数

未经声明的函数原型一律默认为返回int值(4个byte)
定义赋值的指针变量(8个byte)

所以发生警告

 

标签:different,Wint,cast,warning,pointer,size
From: https://www.cnblogs.com/youdao67/p/17097209.html

相关文章

  • SV中的关键词使用virtual,cast
    virtualSV不允许一个子类句柄指向父类对象,但是可以让一个父类句柄指向子类对象。由于父类句柄只能访问父类的成员变量和方法,不利于验证环境的复用;所以为了让继承了同一父......
  • 使用Broadcast实现Flink流处理动态更新配置数据
    需求背景Flink实时任务的开发过程中,有一个常见的场景需要动态更新一些配置信息,这些信息可能在文件中,也可能是数据库中。对于批处理任务而言这非常简单,可我们在实时任务的......
  • 十一: 关于dynamic_cast 与继承
    classBase{public:Base()=default;~Base()=default;};classData:publicBase{public:Data(){}~Dat......
  • uintptr & unsafe.Pointer
    uintptr&unsafe.Pointerunsafe.Pointer从名字来看它是不安全的和指针相关,unsafer.pointer主要的功能就是不同类型指针间的转换。funcmain(){vara*int8var......
  • MATH1851 Calculus and ordinary differential equations
    课程内容笔记,自用,不涉及任何assignment,exam答案Notesforselfuse,notincludedanyassignmentsorexams由于提前预习了微积分(见微积分\(I\),微积分\(II\))......
  • 爬google podcast 笔记
    问题1https://stackoverflow.com/questions/57217924/pyppeteer-errors-browsererror-browser-closed-unexpectedlyexportno_proxy=localhost,127.0.0.1......
  • [Typescript] Understanding Generics at Different Levels of Functions
    Thefollowingcodeimport{expect,it}from'vitest';import{Equal,Expect}from'../helpers/type-utils';exportinterfaceCache<T>{get:(key:string......
  • C++ const pointer
    在C++中const限定的指针类型常常令人困惑,现整理如下,以整型为例,主要区分如下三个例子constint*p;int*constp;constint*constp;其实就是2种情况,const在int前......
  • SQL Server 2000 函数使用---CAST 和 CONVERT
    将某种数据类型的表达式显式转换为另一种数据类型。CAST和CONVERT提供相似的功能。语法使用CAST:CAST(expressionASdata_type)使用CONVERT:CONVERT(data_type[(le......
  • Android BroadcastReceiver
    Android中的每个应用程序都可以对自己感兴趣的广播进行注册,这样该程序就只会收到自己所关心的广播内容,这些广播可能是来自于系统的,也可能是来自于其他应用程序的。Androi......