PR c/59871 c/ * c-typeck.c (build_compound_expr): Warn even for right-hand operand...
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Jan 2014 19:04:29 +0000 (19:04 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 8 May 2014 16:18:28 +0000 (10:18 -0600)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207002 138bc75d-0d04-0410-961f-82ee72b054a4

libdecnumber/ChangeLog
libdecnumber/decNumberLocal.h

index 52b517854a2ea0eb224886a304bf64d5daded311..65d20fcdbd9e1fc3d59be7c3f7ea56fa49a5e6ed 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-23  Marek Polacek  <polacek@redhat.com>
+
+       PR c/59871
+       * decNumberLocal.h (UBFROMUS, UBFROMUI): Remove last argument.
+
 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
 
        * Makefile.in (PICFLAG): New.
index c8dbafc3f4b6e766a3d93ae32645ac209fc43aab..b0e404d7d12d936ba250829ed7a529f4acc513ed 100644 (file)
@@ -153,10 +153,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   #define UBTOUI(b)  (memcpy((void *)&uiwork, b, 4), uiwork)
 
   /* Store a uInt, etc., into bytes starting at a char* or uByte*.    */
-  /* Returns i, evaluated, for convenience; has to use uiwork because */
-  /* i may be an expression.                                         */
-  #define UBFROMUS(b, i)  (uswork=(i), memcpy(b, (void *)&uswork, 2), uswork)
-  #define UBFROMUI(b, i)  (uiwork=(i), memcpy(b, (void *)&uiwork, 4), uiwork)
+  /* Has to use uiwork because i may be an expression.               */
+  #define UBFROMUS(b, i)  (uswork=(i), memcpy(b, (void *)&uswork, 2))
+  #define UBFROMUI(b, i)  (uiwork=(i), memcpy(b, (void *)&uiwork, 4))
 
   /* X10 and X100 -- multiply integer i by 10 or 100                 */
   /* [shifts are usually faster than multiply; could be conditional]  */
This page took 0.026613 seconds and 4 git commands to generate.