You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
00d1e6c75e
Looking into /usr/include/stdlib.h, there's a `devname()` function defined under some #ifdef's which conflicts with the `static char *devname` definition in `src/mkwrggimg.c`. Defining `_ANSI_SOURCE` in the `src/mkwrggimg.c` file, omits that part of the header. Another more intrusive approach is to rename `devname` to something like `g_devname` in `src/mkwrggimg.c`. But I think the `_ANSI_SOURCE` define should be enough. Compilation error is: src/mkwrggimg.c:64:14: error: redefinition of 'devname' as different kind of symbol static char *devname; ^ /usr/include/stdlib.h:286:7: note: previous definition is here char *devname(dev_t, mode_t); ^ src/mkwrggimg.c:147:12: error: non-object type 'char *(dev_t, mode_t)' (aka 'char *(int, unsigned short)') is not assignable devname = optarg; ~~~~~~~ ^ src/mkwrggimg.c:192:6: warning: comparison of function 'devname' equal to a null pointer is always false [-Wtautological-pointer-compare] if (devname == NULL) { ^~~~~~~ ~~~~ src/mkwrggimg.c:192:6: note: prefix with the address-of operator to silence this warning if (devname == NULL) { ^ & src/mkwrggimg.c:251:27: warning: incompatible pointer types passing 'char *(dev_t, mode_t)' (aka 'char *(int, unsigned short)') to parameter of type 'const char *' [-Wincompatible-pointer-types] strncpy(header->devname, devname, sizeof(header->devname)); ^~~~~~~ /usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> [Jo-Philipp Wich: slightly reformat commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io> |
8 years ago | |
---|---|---|
.. | ||
autoconf | 9 years ago | |
automake | 9 years ago | |
b43-tools | 8 years ago | |
bc | 9 years ago | |
bison | 9 years ago | |
ccache | 8 years ago | |
cloog | 11 years ago | |
cmake | 8 years ago | |
coreutils | 8 years ago | |
dosfstools | 8 years ago | |
e2fsprogs | 8 years ago | |
elftosb | 9 years ago | |
expat | 8 years ago | |
findutils | 8 years ago | |
firmware-utils | 8 years ago | |
flex | 8 years ago | |
flock | 8 years ago | |
genext2fs | 8 years ago | |
gengetopt | 9 years ago | |
gmp | 8 years ago | |
include | 9 years ago | |
isl | 8 years ago | |
kernel2minor | 8 years ago | |
libelf | 12 years ago | |
libressl | 8 years ago | |
libtool | 8 years ago | |
lzma | 8 years ago | |
lzma-old | 13 years ago | |
m4 | 9 years ago | |
make-ext4fs | 8 years ago | |
missing-macros | 9 years ago | |
mkimage | 8 years ago | |
mklibs | 9 years ago | |
mm-macros | 8 years ago | |
mpc | 9 years ago | |
mpfr | 8 years ago | |
mtd-utils | 8 years ago | |
mtools | 9 years ago | |
padjffs2 | 8 years ago | |
patch | 9 years ago | |
patch-image | 8 years ago | |
patchelf | 8 years ago | |
pkg-config | 8 years ago | |
ppl | 8 years ago | |
qemu | 9 years ago | |
quilt | 9 years ago | |
scons | 8 years ago | |
sdimage | 8 years ago | |
sed | 9 years ago | |
sparse | 8 years ago | |
squashfs | 9 years ago | |
squashfs4 | 8 years ago | |
sstrip | 9 years ago | |
tar | 8 years ago | |
upslug2 | 8 years ago | |
upx | 8 years ago | |
wrt350nv2-builder | 9 years ago | |
xz | 8 years ago | |
yaffs2 | 8 years ago | |
Makefile | 8 years ago |