Bug 1641570 - gluster-block: Fix minor rpm-build warnings
Summary: gluster-block: Fix minor rpm-build warnings
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gluster-block
Version: ocs-3.11
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: OCS 3.11.1
Assignee: Amar Tumballi
QA Contact: Neha Berry
URL:
Whiteboard:
Depends On:
Blocks: OCS-3.11.1-devel-triage-done 1644154
TreeView+ depends on / blocked
 
Reported: 2018-10-22 08:41 UTC by Prasanna Kumar Kalever
Modified: 2019-02-08 05:38 UTC (History)
11 users (show)

Fixed In Version: gluster-block-0.2.1-29.el7rhgs
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-07 03:38:29 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0285 0 None None None 2019-02-07 03:38:49 UTC

Description Prasanna Kumar Kalever 2018-10-22 08:41:21 UTC
Description of problem:

Fix minor rpm build warnings

$ rpmbuild --quiet -ta gluster-block-0.3tar.gz
In file included from common.h:15:0,
from common.c:12:
common.c: In function 'glusterBlockParseSize':
common.c:104:11: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'ssize_t {aka long int}' [-Wformat=]
MSG("The size %lld will align to sector size %d bytes\n",
^
utils.h:132:29: note: in definition of macro 'MSG'
fprintf(stdout, fmt, VA_ARGS); 
^~~
utils.h:178:27: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'ssize_t {aka long int}' [-Wformat=]
fprintf(fd, "[%s] %s: " fmt " [at %s+%d :<%s>]\n", 
^
common.c:106:7: note: in expansion of macro 'LOG'
LOG(dom, GB_LOG_ERROR,
^~~
common.c:107:38: note: format string is defined here
"The target device size %lld is will align to the sector size %d",
~~~^
%ld
utils.c:20:24: warning: missing braces around initializer [-Wmissing-braces]
struct gbConf gbConf = {LRU_COUNT_DEF, GB_LOG_INFO, GB_LOGDIR, '\0', '\0', '\0', '\0', '\0', '\0', 0};
^
{ }
621 blocks

Comment 2 Prasanna Kumar Kalever 2018-10-22 08:43:00 UTC
PR: https://github.com/gluster/gluster-block/pull/141

Comment 12 errata-xmlrpc 2019-02-07 03:38:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0285


Note You need to log in before you can comment on or make changes to this bug.