Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #18276

Re: Getting rid of warnings

Message-ID <4F5684E9.4020100@loria.fr> (permalink)
Date 2012-03-06 22:43 +0100
From Jens Gustedt <jens.gustedt@loria.fr>
Newsgroups comp.lang.c
Subject Re: Getting rid of warnings
References <jj21a3$alt$1@ccpntc8.in2p3.fr> <8gtg29-od7.ln1@voyager.wichi.de.vu> <jj50qs$qmm$1@ccpntc8.in2p3.fr> <4F560AF6.40402@loria.fr> <0.2d86716fd227db6d05f3.20120306171759GMT.87pqcp3ayg.fsf@bsb.me.uk>
Organization Guest of ProXad - France

Show all headers | View raw


Am 03/06/2012 06:17 PM, schrieb Ben Bacarisse:
> Jens Gustedt <jens.gustedt@loria.fr> writes:
>> In fact the above initializer { 0 } works for any type of array (and
>> other variable) as long as MAX_TRACES is a compile time integer
>> constant.
> 
> I think it works for variably modified array types as well.  In other
> word, MAX_TRACES could be (or could expand to) an expression that is not
> a compile-time constant.

No, for VLA initializers are not allowed, unfortunately.

Jens

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Getting rid of warnings Guillaume Dargaud <use_the_contact_form@www.gdargaud.net> - 2012-03-05 10:33 +0100
  Re: Getting rid of warnings Ike Naar <ike@iceland.freeshell.org> - 2012-03-05 11:16 +0000
  Re: Getting rid of warnings Barry Schwarz <schwarz45@yahoo.com> - 2012-03-05 13:22 -0800
  Re: Getting rid of warnings Markus Wichmann <nullplan@gmx.net> - 2012-03-06 09:12 +0100
    Re: Getting rid of warnings Guillaume Dargaud <use_the_contact_form@www.gdargaud.net> - 2012-03-06 13:44 +0100
      Re: Getting rid of warnings Jens Gustedt <jens.gustedt@loria.fr> - 2012-03-06 14:02 +0100
        Re: Getting rid of warnings Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-03-06 17:17 +0000
          Re: Getting rid of warnings Jens Gustedt <jens.gustedt@loria.fr> - 2012-03-06 22:43 +0100
            Re: Getting rid of warnings Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-03-06 22:49 +0000
      Re: Getting rid of warnings James Kuyper <jameskuyper@verizon.net> - 2012-03-06 08:04 -0500
        Re: Getting rid of warnings Guillaume Dargaud <use_the_contact_form@www.gdargaud.net> - 2012-03-13 10:59 +0100
      Re: Getting rid of warnings Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-03-06 08:27 -0500

csiph-web