[MacPorts] #37770: cast/lvalue bug not yet solved out

MacPorts noreply at macports.org
Wed Jan 23 19:32:14 PST 2013


#37770: cast/lvalue bug not yet solved out
------------------------+------------------------------------
 Reporter:  lfpmelzi@…  |      Owner:  macports-tickets@…
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.1.2
 Keywords:  iscsi       |       Port:  netbsd-iscsi-initiator
------------------------+------------------------------------
 I know this bug has been reported twice yet, but it seems like no one is
 caring about, so I add my report.
 same cast/lvalue bug applies.

 info:build disk.c:810:38: error: assignment to cast is illegal, lvalue
 casts are not supported
 :info:build                 *((uint64_t *) (void *)data + 8) = (uint64_t)
 ISCSI_HTONLL(key);
 :info:build
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build  /usr/bin/clang -DHAVE_CONFIG_H -I. -I../../include
 -I../../include -I/opt/local/include -pipe -O2 -arch x86_64 -MT
 libiscsi_la-strlcpy.lo -MD -MP -MF .deps/libiscsi_la-strlcpy.Tpo -c
 strlcpy.c -o libiscsi_la-strlcpy.o >/dev/null 2>&1
 :info:build 1 error generated.

-- 
Ticket URL: <https://trac.macports.org/ticket/37770>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list