FS#39491 - [xdiskusage] build fails

Attached to Project: Community Packages
Opened by Joel Teichroeb (klusark) - Sunday, 16 March 2014, 22:53 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 23 April 2014, 17:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

c++ -Wall -O2 -c xdiskusage.C
xdiskusage.C: In static member function 'static OutputWindow* OutputWindow::make(const char*, Disk*)':
xdiskusage.C:408:6: error: redeclaration of 'int i'
int i = readlink(pathbuf, p, 1024-(p-pathbuf));
^
xdiskusage.C:406:16: error: 'int i' previously declared here
for (int i=0; i<10; i++) {
^
xdiskusage.C:508:71: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=]
fprintf (stderr, "%s:%d: line too long, skipping it\n", path, line_no);
^
xdiskusage.C:526:75: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=]
fl_alert("%s:%d: does not look like du output: %s", path, line_no, p);
^
xdiskusage.C: In member function 'void OutputWindow::draw_tree(Node*, int, ulong, double, double)':
xdiskusage.C:715:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (c < 32 || c>=127 && c < 0xA0 || c==255) c = '?';
^
Makefile:29: recipe for target 'xdiskusage.o' failed
make: *** [xdiskusage.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
Aborting...


Steps to reproduce:
sudo extra-x86_64-build
This task depends upon

Closed by  Sergej Pupykin (sergej)
Wednesday, 23 April 2014, 17:03 GMT
Reason for closing:  Fixed

Loading...