From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29676 invoked by alias); 7 May 2012 19:40:04 -0000 Received: (qmail 29663 invoked by uid 22791); 7 May 2012 19:40:03 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ausc60ps301.us.dell.com (HELO ausc60ps301.us.dell.com) (143.166.148.206) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 May 2012 19:39:49 +0000 X-Loopcount0: from 10.175.216.251 From: To: CC: , , Subject: Re: [RFA] Emit a warning for ineffective set VAR = EXP command Date: Mon, 07 May 2012 19:40:00 -0000 Message-ID: References: <8781499A-A489-42D0-80B1-75136331DBDB@adacore.com> <874nrryeap.fsf@fleche.redhat.com> In-Reply-To: <874nrryeap.fsf@fleche.redhat.com> Content-Type: text/plain; charset="us-ascii" Content-ID: <96BE93C55A7EF64A95B9A9263D7F465D@dell.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00191.txt.bz2 On May 7, 2012, at 3:35 PM, Tom Tromey wrote: >>>>>> "Tristan" =3D=3D Tristan Gingold writes: >=20 > Tristan> I am not opposed to disable warnings for pre/post inc/dec. > Tristan> But this usage is dubious (the help explicitly mentions VAR=3DEX= P !) >=20 > Tristan> Opinion ? >=20 > Either way is fine by me. > I suppose it seems a little pedantic to warn about the ++ operator. >=20 > Tom What would ++ do if your current language is Ada, or Fortran? Complain abo= ut syntax error? It would be good to clarify the documentation to say that this also works. paul