kernel 编译产生这个警告的原因是 不兼容指针类型的赋值 这个原因很有可能是因为返回值和正在接受这个指针类型名不相同. // vim arch/arm/mach-omap2/usb-host.c // 返回值强制类型转换即可 525 od = (struct omap_device *)omap_device_build_ss(OMAP_USBHS_DEVICE, bus_id, oh, 2, 526 (void *)&usbhs_data, sizeof(usbhs_data), 527…
代码: /************************************************************************* > File Name: ptr_variable.c > Author: Mr.Yang > Purpose:演示指向变量的指针 > Created Time: 2017年06月03日 星期六 08时47分33秒 ********************************************************…
iOS报错:Property type 'id' is incompatible with type 'id _Nullable' inherited from 'UITabBar' 如图: 可能原因:由于自定义tabBar,没有继承系统UITabBarDelegate造成的 解决办法: 第一步: 第二步:…
注:内有单词(sping)写错,请忽略,不影响程序运行 运行时报错: Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mhl' defined in class path resource [myjava/wicherspingaop-aop.xml]: BeanPostProcessor before i…
使用springboot jpa,在运行项目时发现一个WARN WARN 11472 --- [ main] aWebConfiguration$JpaWebMvcConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-…
之前MongoDB启动的时候是蛮正常的,不知道后来启动报错了,就把粘贴出来查询了.最后才知道是由于自己不正常的关闭导致的这个情况. --摘录:MongoDB非正常关闭后修复记录 mongod没有后台执行,在终端连接非正常断开后,再次执行mongod报错,如下所示: 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability. 修复方法: 这算是一个Mong…
使用JProfiler监控JAVA程序内存,JVM报错: A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000007718b81a, pid=8540, tid=0x0000000000000fa4 JRE version: Java(TM) SE Runtime Environment (8.0_162-b12…
eslint常会出现这样的错误提示,控制台打印:Type of the default value for 'songs' prop must be a function 解决办法有两种如下: 1:写一个函数,return一个数组 2: ES6 箭头函数写法 就可以解决这个个问题…
今天启动mongodb的时候,之前一直没注意,今天发现又warning,想整一整. 下面是告警 2019-09-05T12:00:55.271+0800 I CONTROL [initandlisten] 2019-09-05T12:00:55.271+0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. 2019-09-05T12:00:55.271…
将int变量转为(void*)时出现错误 error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 这是由于int类型为32位,指针为long long 64位 解决方法:(void*)(intptr_t)…