2013/2/12 Justin Bogner <span dir="ltr"><<a href="mailto:mail@justinbogner.com" target="_blank">mail@justinbogner.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Armin Rigo <<a href="mailto:arigo@tunes.org">arigo@tunes.org</a>> writes:<br>
> Ah, indeed. We declare most arrays as "itemtype x[1]", so gcc complains<br>
> when it can prove we do accesses at an index > 0.<br>
<br>
</div>Is there a good reason not to use the C99 "itemtype x[]" or even the old<br>
GCC extension "itemtype x[0]"? These won't trigger this warning, which<br>
means we could leave it on in case a legitimate case crops up.</blockquote></div><br>It seems that Microsoft compilers also support this extension:<div><a href="http://msdn.microsoft.com/en-us/library/b6fae073(v=vs.71).aspx">http://msdn.microsoft.com/en-us/library/b6fae073(v=vs.71).aspx</a><br>
<br clear="all"><div><br></div>-- <br>Amaury Forgeot d'Arc
</div>