]> code.ossystems Code Review - meta-freescale.git/commit
hypervisor: fix sizeof-pointer-memaccess error
authorTing Liu <b28495@freescale.com>
Wed, 10 Jul 2013 03:45:00 +0000 (03:45 +0000)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Thu, 11 Jul 2013 08:48:28 +0000 (16:48 +0800)
commit811b8944616e03f109038a127aec8aa2cdb9b8b6
tree111505b1d0b2a5ccd22e5ccd7fb7b07306b45d83
parent4121c7b01546ad072383d92946cd54d0f87259a8
hypervisor: fix sizeof-pointer-memaccess error

Fix the below build error:
| build: src/livetree.c
| .../hypervisor/git-r3/git/src/devtree.c: In function 'read_intmap':
| .../hypervisor/git-r3/git/src/devtree.c:1513:25: error: argument to
| 'sizeof' in 'memset' call is the same expression as the destination;
| did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
|        memset(ent, 0, sizeof(ent));
|                             ^
|  cc1: all warnings being treated as errors
|  build: src/ipi_doorbell.c
|  make[1]: *** [bin/devtree.o] Error 1
|  make[1]: *** Waiting for unfinished jobs....
|  make[1]: Leaving directory `.../hypervisor/git-r3/git/output'
|  make: *** [all] Error 2
|  ERROR: oe_runmake failed

Signed-off-by: Ting Liu <b28495@freescale.com>
meta-fsl-ppc/recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch [new file with mode: 0644]
meta-fsl-ppc/recipes-virtualization/hypervisor/hypervisor_git.bb