警告:使用C99长整型常量 [英] warning: use of C99 long long integer constant
问题描述
不幸的是,我没有找到关于此警告的大量信息。如果我使用-pedantic进行编译,则会发生
,但我不确定如何解决这个问题。
这个问题。你有什么想法吗?
以下代码产生警告:
const static unsigned long long data [1] = {
0x428a2f98d728ae22ULL,0x7137449123ef65cdULL}
关心并非常感谢,
Sebastian
Hi,
Unfortunately, I don''t find lots of information on this warning. It
occurs if I compile with -pedantic but I am not sure how I can resolve
this problem. Do you have an idea?
The following code produces the warning:
const static unsigned long long data[1] = {
0x428a2f98d728ae22ULL, 0x7137449123ef65cdULL}
Regards and thanks a lot,
Sebastian
推荐答案
4月1日上午8:39,Sebastian Faust< sebastian.fa ... @ googlemail.com>
写道:
On Apr 1, 8:39 am, Sebastian Faust <sebastian.fa...@googlemail.com>
wrote:
不幸的是,我没有找到关于此警告的大量信息。如果我使用-pedantic进行编译,则会发生
,但我不确定如何解决这个问题。
这个问题。你有什么想法吗?
以下代码产生警告:
const static unsigned long long data [1] = {
0x428a2f98d728ae22ULL,0x7137449123ef65cdULL}
关心并非常感谢,
Sebastian
Hi,
Unfortunately, I don''t find lots of information on this warning. It
occurs if I compile with -pedantic but I am not sure how I can resolve
this problem. Do you have an idea?
The following code produces the warning:
const static unsigned long long data[1] = {
0x428a2f98d728ae22ULL, 0x7137449123ef65cdULL}
Regards and thanks a lot,
Sebastian
你没有发布警告。但是,我很惊讶你不会因为你试图初始化一个带有两个
值的1的数组而得到错误。
-Jul
You neglected to post the warning. However, I''m surprised you don''t
get an error since you try to initialize an array of 1 with two
values.
-Jul
Sebastian Faust写道:
Sebastian Faust wrote:
不幸的是,我没有找到关于此警告的大量信息。如果我使用-pedantic进行编译,则会发生
,但我不确定如何解决这个问题。
这个问题。你有什么想法吗?
以下代码产生警告:
const static unsigned long long data [1] = {
0x428a2f98d728ae22ULL,0x7137449123ef65cdULL}
Hi,
Unfortunately, I don''t find lots of information on this warning. It
occurs if I compile with -pedantic but I am not sure how I can resolve
this problem. Do you have an idea?
The following code produces the warning:
const static unsigned long long data[1] = {
0x428a2f98d728ae22ULL, 0x7137449123ef65cdULL}
除了警告(Ben Bacarisse已经解释过),请注意
您正在尝试初始化数组1,有两名成员。
请在信息和主题中引用警告。
菲利普
Aside from the warning (which Ben Bacarisse has explained), note that
you are trying to initialize an array of size 1 with two members.
Please quote the warning in the message as well as the subject.
Philip
谢谢!有用!这只是一个复制和粘贴错误...我复制了
相关代码然后我犯了这个错误...
再次感谢,
塞巴斯蒂安
Hi,
Thanks! it works! It was just a copy&paste typo... I copied the
relevant code and then I made this typo...
Thanks again,
Sebastian
这篇关于警告:使用C99长整型常量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!