AnoopPuthanveetil / yaffs2utils

Automatically exported from code.google.com/p/yaffs2utils
GNU General Public License v2.0
0 stars 1 forks source link

build error #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
$ gcc -v
...
Target: x86_64-alt-linux
...
gcc version 4.9.2 ...

$ make
...
gcc -I. -I./yaffs2 -O2 -Wall -Wshadow -Winline -Wpointer-arith -Wnested-externs 
-Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes 
-Wredundant-decls -D_HAVE_MMAP   -c -o unyaffs2.o unyaffs2.c
unyaffs2.c: In function ‘unyaffs2_obj_chattr’:
unyaffs2.c:763:2: warning: ignoring return value of ‘lchown’, declared with 
attribute warn_unused_result [-Wunused-result]
  lchown(fpath, obj->uid, obj->gid);
  ^
In file included from /usr/include/string.h:654:0,
                 from unyaffs2.c:26:
In function ‘memcpy’,
    inlined from ‘unyaffs2_extract_hardlink.constprop’ at unyaffs2.c:1222:2,
    inlined from ‘unyaffs2_extract_obj’ at unyaffs2.c:1289:10:
/usr/include/bits/string3.h:51:3: error: call to __builtin___memcpy_chk will 
always overflow destination buffer
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
make: *** [unyaffs2.o] Ошибка 1

Original issue reported on code.google.com by ildar.mulyukov on 9 Jan 2015 at 6:26