hns - 日記自動生成システム - Version 2.19.9

先月 2010年09月 来月
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2010年09月24日(金) 旧暦 [n年日記] [更新:"2010/09/25 15:57:31"]

#1 [NetBSD] 'copy_fs' may be used uninitialized in this function

久し振りに TsubaiBSD を build しているのだけれど
# compile ffs/ffs_snapshot.o /export/nandra/checkout/src/obj/tooldir.NetBSD-5.0_STABLE-amd64/bin/x86_64--netbsd-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Werror -ffreestanding -fno-strict-aliasing -Wno-pointer-sign -mno-red-zone -mcmodel=kernel -I/export/nandra/checkout/src/common/include -DUFS_DIRHASH -DFFS_EI -DWAPBL -DAPPLE_UFS -DQUOTA -I/export/nandra/checkout/src/common/include -nostdinc -I. -I/export/nandra/checkout/src/sys/modules/ffs -isystem /export/nandra/checkout/src/sys -isystem /export/nandra/checkout/src/sys/arch -isystem /export/nandra/checkout/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE -c /export/nandra/checkout/src/sys/ufs/ffs/ffs_snapshot.c
cc1: warnings being treated as errors
/export/nandra/checkout/src/sys/ufs/ffs/ffs_snapshot.c: In function 'ffs_snapshot':
/export/nandra/checkout/src/sys/ufs/ffs/ffs_snapshot.c:180: warning: 'copy_fs' may be used uninitialized in this function
I think I remember the symptom, but not able to find the history.
Index: sys/ufs/ffs/ffs_snapshot.c
===================================================================
RCS file: /export/nandra/Repository/src/sys/ufs/ffs/ffs_snapshot.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 ffs_snapshot.c
--- sys/ufs/ffs/ffs_snapshot.c	24 Sep 2010 07:06:03 -0000	1.1.1.1
+++ sys/ufs/ffs/ffs_snapshot.c	24 Sep 2010 23:06:03 -0000
@@ -177,7 +177,7 @@
 	void *sbbuf = NULL;
 	daddr_t *snaplist = NULL, snaplistsize = 0;
 	struct buf *bp, *nbp;
-	struct fs *copy_fs, *fs = VFSTOUFS(mp)->um_fs;
+	struct fs *copy_fs = NULL, *fs = VFSTOUFS(mp)->um_fs;
 	struct inode *ip = VTOI(vp);
 	struct lwp *l = curlwp;
 	struct snap_info *si = VFSTOUFS(mp)->um_snapinfo;




最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)