[rhel5-branch] [PATCH] Create /dev/* symlinks after we mount tmpfs on /dev
Vratislav Podzimek
vpodzime at redhat.com
Mon Sep 17 06:26:54 UTC 2012
On Thu, 2012-09-13 at 15:57 +0200, Radek Vykydal wrote:
> I tried a scratch build as I did one for a 5.9 bz recently
> and it fails with:
>
> cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -Wall -Werror -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DUSESELINUX=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libdhcp -I/usr/include/dhcp4client -I/usr/include/dhcp6client -DUSE_LOGDEV -DVERSION='"11.1.2.254"' -c -o init.o init.c
> cc1: warnings being treated as errors
> init.c: In function 'createDevices':
> init.c:487: warning: ignoring return value of 'symlink', declared with attribute warn_unused_result
> init.c:488: warning: ignoring return value of 'symlink', declared with attribute warn_unused_result
> init.c:489: warning: ignoring return value of 'symlink', declared with attribute warn_unused_result
> init.c:490: warning: ignoring return value of 'symlink', declared with attribute warn_unused_result
> make[1]: *** [init.o] Error 1
Well, if I save the return value to a variable, it will fail on "unused
variable...". I think, the only reasonable way is to add some logging if
'symlink' fails.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list