Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Feb 2018 13:10:23 -0800
From:      Eitan Adler <lists@eitanadler.com>
To:        cem@freebsd.org
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>,  FreeBSD Standards <freebsd-standards@freebsd.org>
Subject:   Re: Marking select(2) as restrict
Message-ID:  <CAF6rxgm0YAsT5WqisFR83Q7nLXiZdxtocmp3rAp=3MwthUM7Qg@mail.gmail.com>
In-Reply-To: <CAG6CVpXfcNfQmJkertq%2BpMg3DtmsJjYC4TsX%2Bjd-7PgMF%2B6cKg@mail.gmail.com>
References:  <CAF6rxg=h_oMiUu7P=GAOQf_OySQM2w31hg6Kas%2B3jeEM3qq_Cg@mail.gmail.com> <CAF6rxgnt9c0n8i-nHQwoKGbZKF2hM5AZqEJnz0CLo26XOO4_sg@mail.gmail.com> <20180221032247.GA81670@ns.kevlo.org> <CAF6rxg=WwqeBnmJzfOZgtwrYesXPfvJFeaVmQwtTa_89_sxaJg@mail.gmail.com> <CANCZdfo46bhfaRpbqOmJjk4%2B=1R2c5kvmrJPENaxNgK==5M4kg@mail.gmail.com> <CAF6rxg=wNVgDUF9o744ngmzPNeHB3hqdrLufy=yS3D4osczxFQ@mail.gmail.com> <20180221104400.GU94212@kib.kiev.ua> <20180222112752.10da7e51@kalimero.tijl.coosemans.org> <20180222105608.GE94212@kib.kiev.ua> <CANCZdfrDCt6JCWcZDk8c3AdqX%2B1MwbUH2cNr=NqqyP7gWmUByg@mail.gmail.com> <CAF6rxgn=-J5uAAG86zgV-vFiPpzgoFre-nBZ94EPPKz9eCX8Jg@mail.gmail.com> <CAG6CVpXfcNfQmJkertq%2BpMg3DtmsJjYC4TsX%2Bjd-7PgMF%2B6cKg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 22 February 2018 at 12:04, Conrad Meyer <cem@freebsd.org> wrote:
>
> In my local testing, neither Clang nor GCC6 produces any error or
> warning for this, which is disappointing.

I forget the exact version but gcc produces this warning:

restrict.c:10:6: warning: passing argument 1 to restrict-qualified
parameter aliases with argument 2 [-Wrestrict]
  meh(&a, &a);




-- 
Eitan Adler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgm0YAsT5WqisFR83Q7nLXiZdxtocmp3rAp=3MwthUM7Qg>