摘要:
linux系统同步时间 1、安装ntp 通过buildroot安装ntp包 2、查看时间 date 注:查看时区 3、同步时间 同步时间命令: ntpdate -u ntp-server 注:ntpdate 加上-u 参数同步,否则会出现如下错误:no server suitable for syn 阅读全文
摘要:
在C程序中,如果定义了一个静态函数或变量,而没有去使用,编译时会有一个警告:'xxx' defined but not used 在函数或变量前添加如下: __attribute__((unused)) 可以告诉编译器忽略此告警: 转载说明: 1、https://blog.csdn.net/hanh 阅读全文