From: Bernhard Voelker Date: Wed, 5 Sep 2012 13:12:01 +0000 (+0200) Subject: ipcrm: avoid 'uninitialized' warning X-Git-Tag: v2.23-rc1~665 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b83b9b11c2563e52280d041e9b18e7cc41561636;p=thirdparty%2Futil-linux.git ipcrm: avoid 'uninitialized' warning GCC 4.1.2 on SLES 10.4: sys-utils/ipcrm.c: In function ‘main’: sys-utils/ipcrm.c:297: warning: ‘what_all’ may be used uninitialized in this function * sys-utils/ipcrm.c: Initialize what_all to ALL. Signed-off-by: Bernhard Voelker --- diff --git a/sys-utils/ipcrm.c b/sys-utils/ipcrm.c index 7807bd4372..6a1ac0d6e1 100644 --- a/sys-utils/ipcrm.c +++ b/sys-utils/ipcrm.c @@ -294,7 +294,7 @@ int main(int argc, char **argv) int id = -1; int iskey; int rm_all = 0; - type_id what_all; + type_id what_all = ALL; static const struct option longopts[] = { {"shmem-id", required_argument, NULL, 'm'},