博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【转】gcc warning: braces around scalar initializer (标量初始化的括号)
阅读量:4565 次
发布时间:2019-06-08

本文共 1196 字,大约阅读时间需要 3 分钟。

原文网址:http://stackoverflow.com/questions/3462513/gcc-warning-braces-around-scalar-initializer

I have look-up-table as defined below and I'm making use of GCC. When I compile I get warnings as

warning: braces around scalar initializer

What does this warning mean? How should I initialize this LUT? Am I making a mistake in initializing this structures?

Help!!

typedef struct TECH{ float velocity1, velocity2; float temp; float measure; int id; float storage[64]; }TECH; struct TECH lut_model_1[2] = { { { 296.001465}, { 74.216972}, { 2.025908}, { 1.516384}, { 1}, { 0.001746, 0.000256, 0.006216, 0.005249, -0.001668, -0.001377, 0.009865, 0.010454, -0.000288, -0.005853, 0.010584, 0.015440, 0.000465, -0.000602, 0.004330, 0.005700, 0.017120, 0.233015, 0.034154, 0.244022, 0.007644, 0.385683, 0.042960, 0.406633, -0.007811, 0.346931, 0.040123, 0.387361, 0.007030, 0.225309, 0.017897, 0.241024, 0.003700, 0.103601, 0.060748, 0.121059, -0.045041, 0.076974, 0.070647, 0.148810, -0.022399, 0.074007, 0.054797, 0.141794, 0.010376, 0.052482, 0.045013, 0.078443, -0.019940, -0.057353, 0.044285, 0.066622, -0.058232, -0.093817, 0.064753, 0.126611, -0.008286

转载于:https://www.cnblogs.com/wi100sh/p/4570450.html

你可能感兴趣的文章
php反射
查看>>
hdu 1018 Big Number 数学结论
查看>>
【MUI】百度地图定位功能
查看>>
JavaWeb学习笔记——XML解析
查看>>
SSH使用总结(xml配置)
查看>>
Sharepoint WebService引用
查看>>
Eclipse常用开发插件
查看>>
20131209-数据库导入导出数据-sqlhelper-第十七天
查看>>
SQL Server事务
查看>>
Vue route的使用
查看>>
PHP 工厂模式介绍
查看>>
(转JAVAEYE)System类方法大全
查看>>
[matlab]kappa-loss-cone函数在研究动量范围内的函数图像
查看>>
hdu 1690 Bus System (有点恶心)
查看>>
Linux环境安装.NET运行环境
查看>>
flask 启动
查看>>
寒假作业1
查看>>
个人作业2——英语学习APP案例分析(必应词典的使用)
查看>>
UE4中的单映射:TMap容器
查看>>
java的File类
查看>>