Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15
mdadm.12486
0094-Query-Quiet-gcc-since-it-cannot-know-errno...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0094-Query-Quiet-gcc-since-it-cannot-know-errno-0-in-this.patch of Package mdadm.12486
From 0dfff0f24355ad4b5c1776f7f19a404ffae25415 Mon Sep 17 00:00:00 2001 From: Jes Sorensen <jsorensen@fb.com> Date: Fri, 21 Apr 2017 12:04:05 -0400 Subject: [PATCH] Query: Quiet gcc since it cannot know errno != 0 in this case Git-commit: 0dfff0f24355ad4b5c1776f7f19a404ffae25415 Patch-mainline: mdadm-4.0+ References: bsc#1069165, bsc#1069167, bsc#1068030 Signed-off-by: Jes Sorensen <jsorensen@fb.com> Signed-off-by: Coly Li <colyli@suse.de> --- Query.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Query.c b/Query.c index 4dec9f5..2bd0e2a 100644 --- a/Query.c +++ b/Query.c @@ -68,6 +68,9 @@ int Query(char *dev) if (md_get_array_info(fd, &array) < 0) { ioctlerr = errno; + level = -1; + raid_disks = -1; + spare_disks = -1; } else { level = array.level; raid_disks = array.raid_disks; -- 2.13.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor