This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problem while executing a custom testcase inside testsuite
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Akshat Garg <xkspr7 at gmail dot com>
- Cc: Andreas Schwab <schwab at linux-m68k dot org>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Sat, 22 Jun 2019 22:57:07 +0100
- Subject: Re: Problem while executing a custom testcase inside testsuite
- References: <CAMEQ7YwfiNiifts_f-yuRosg738hNXX5ao9Wi=V+hNfxDBkY_w@mail.gmail.com> <m2r27mkqyw.fsf@linux-m68k.org> <CAMEQ7YyXHmHtq4WogCeyQqhiOEz-i4243c17N4PsKPB_Tp+nTg@mail.gmail.com>
On Sat, 22 Jun 2019 at 12:25, Akshat Garg <xkspr7@gmail.com> wrote:
>
> On Sat, Jun 22, 2019 at 1:10 PM Andreas Schwab <schwab@linux-m68k.org>
> wrote:
>
> > On Jun 22 2019, Akshat Garg <xkspr7@gmail.com> wrote:
> >
> > > I believe I should be getting a warning like:
> > > warning: initialization from incompatible pointer type
> > > [-Wincompatible-pointer-types]
> > > but in the gcc.log file, I found this:
> > > error: initialization of '_Atomic struct rcutest *' from incompatible
> > > pointer type 'struct rcutest *' [-Wincompatible-pointer-types]
> > >
> > > Can anyone please explain to me why this is considered as an error, not a
> > > warning?
> >
> > Because it's a pedwarn, and you are passing -pedantic-errors.
> >
> So, can you tell me what should I pass for pedwarn. I tried with
> -pedwarn-errors, but it didn't work.
-pedantic of course. Try looking in the GCC manual, instead of just
guessing at option names.