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


Groups > comp.lang.c > #45783

Re: Is this a compiler bug? (Function accepts *ptr when **ptr is specified)

From gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups comp.lang.c
Subject Re: Is this a compiler bug? (Function accepts *ptr when **ptr is specified)
Date 2014-06-11 09:39 +0000
Organization The official candy of the new Millennium
Message-ID <ln984l$e4$1@news.xmission.com> (permalink)
References <p4pcp95g1suo33d9s89u212mv8belco8oe@4ax.com> <slrn3vfslpfrre.jqo.ike@iceland.freeshell.org>

Show all headers | View raw


In article <slrn3vfslpfrre.jqo.ike@iceland.freeshell.org>,
Ike Naar  <ike@iceland.freeshell.org> wrote:
>On 2014-06-10, DSF <notavalid@address.here> wrote:
>>   I have some code that compiles with no errors/warnings that would
>> seem to me to have an error.
>
>You're probably running your compiler in a mode that expects
>a dialect of C, not ISO C. This is the default mode for e.g. gcc.
>If you're using gcc, add the -pedantic option.

See .sig

-- 
For instance, Standard C says that nearly all extensions to C are prohibited. How
silly! GCC implements many extensions, some of which were later adopted as part of
the standard. If you want these constructs to give an error message as
“required” by the standard, you must specify ‘--pedantic’, which was
implemented only so that we can say “GCC is a 100% implementation of the
standard”, not because there is any reason to actually use it.

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


Thread

Is this a compiler bug? (Function accepts *ptr when **ptr is specified) DSF <notavalid@address.here> - 2014-06-09 22:46 -0400
  Re: Is this a compiler bug? (Function accepts *ptr when **ptr is specified) Barry Schwarz <schwarzb@dqel.com> - 2014-06-09 21:16 -0700
  Re: Is this a compiler bug? (Function accepts *ptr when **ptr is specified) jt@toerring.de (Jens Thoms Toerring) - 2014-06-10 09:38 +0000
  Re: Is this a compiler bug? (Function accepts *ptr when **ptr is specified) Richard Damon <Richard@Damon-Family.org> - 2014-06-10 07:19 -0400
  Re: Is this a compiler bug? (Function accepts *ptr when **ptr is specified) Ralf Damaschke <rwspam@gmx.de> - 2014-06-10 23:02 +0000
  Re: Is this a compiler bug? (Function accepts *ptr when **ptr is specified) Ike Naar <ike@iceland.freeshell.org> - 2014-06-11 05:56 +0000
    Re: Is this a compiler bug? (Function accepts *ptr when **ptr is specified) gazelle@shell.xmission.com (Kenny McCormack) - 2014-06-11 09:39 +0000
  Re: Is this a compiler bug? (Function accepts *ptr when **ptr is specified) DSF <notavalid@address.here> - 2014-06-11 23:52 -0400
    Re: Is this a compiler bug? (Function accepts *ptr when **ptr is specified) Barry Schwarz <schwarzb@dqel.com> - 2014-06-11 22:38 -0700
    Re: Is this a compiler bug? (Function accepts *ptr when **ptr is specified) James Kuyper <jameskuyper@verizon.net> - 2014-06-12 07:45 -0400

csiph-web