Project

General

Profile

Actions

Bug #6551

closed

cmd/zpool: cleanup gcc warnings

Added by Igor Kozhukhov almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
cmd - userland programs
Start date:
2016-01-13
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

CERRWARN += -_gcc=-Wno-unused-function
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-parentheses

+ /usr/gcc/4.4/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -D__sun -O -m32 -Wall -Wextra -Werror -Wno-missing-braces -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -Wno-missing-field-initializers -Wno-array-bounds -std=gnu89 -fno-inline-small-functions -fno-inline-functions-called-once -fno-ipa-cp -gdwarf-2 -std=gnu89 -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/myshare/builds/ssd02/builds/dilos-illumos.lx/proto/root_i386/usr/include -D_LARGEFILE64_SOURCE=1 -D_REENTRANT -I../../common/zfs -I/myshare/builds/ssd02/builds/dilos-illumos.lx/usr/src/cmd/stat/common -DDEBUG -c zpool_main.c 
cc1: warnings being treated as errors
zpool_main.c: In function 'main':
zpool_main.c:5272: error: 'ret' may be used uninitialized in this function [-Wuninitialized]
*** Error code 1
dmake: Fatal error: Command failed for target `zpool_main.o'
Current working directory /myshare/builds/ssd02/builds/dilos-illumos.lx/usr/src/cmd/zpool

Actions

Also available in: Atom PDF