Project

General

Profile

Bug #6551

cmd/zpool: cleanup gcc warnings

Added by Igor Kozhukhov over 3 years ago. Updated over 3 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

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

History

#1

Updated by Igor Kozhukhov over 3 years ago

  • Description updated (diff)
#2

Updated by Electric Monk over 3 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit b327cd3f3b4dab4f29e7140159b1e01ed2ceef2a

commit  b327cd3f3b4dab4f29e7140159b1e01ed2ceef2a
Author: Igor Kozhukhov <ikozhukhov@gmail.com>
Date:   2016-02-10T18:14:29.000Z

    6551 cmd/zpool: cleanup gcc warnings
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Reviewed by: Andy Stormont <astormont@racktopsystems.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF