Project

General

Profile

Bug #3788

Build error (Werror=misleading-indentation)

Added by Sebastian K. over 8 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2016-05-08
Due date:
% Done:

100%

Estimated time:
Found in version:
4.1-1996~g693b811-dirty
Affected Versions:

Description

src/http.c: In function ‘http_error’:
src/http.c:552:3: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
if (error != HTTP_STATUS_FOUND && error != HTTP_STATUS_MOVED)
^~
src/http.c:554:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
if (error HTTP_STATUS_UNAUTHORIZED)
^~
cc1: all warnings being treated as errors
Makefile:620: recipe for target '/home/supervisor/arch/tvheadend-git/src/tvheadend-git/build.linux/src/http.o' failed
make: *** [/home/supervisor/arch/tvheadend-git/src/tvheadend-git/build.linux/src/http.o] Error 1
> ERROR: A failure occurred in build().
Aborting...

src/htsmsg.c: In function ‘htsmsg_print0’:
src/htsmsg.c:979:7: error: this ‘for’ clause does not guard... [-Werror=misleading-indentation]
for(i = 0; i < indent; i++) printf("\t"); printf("}\n");
^~~
src/htsmsg.c:979:49: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
for(i = 0; i < indent; i++) printf("\t"); printf("}\n");
^~~~~~
src/htsmsg.c:985:7: error: this ‘for’ clause does not guard... [-Werror=misleading-indentation]
for(i = 0; i < indent; i++) printf("\t"); printf("}\n");
^~~
src/htsmsg.c:985:49: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
for(i = 0; i < indent; i++) printf("\t"); printf("}\n");
^~~~~~
cc1: all warnings being treated as errors
Makefile:620: recipe for target '/home/supervisor/arch/tvheadend-git/src/tvheadend-git/build.linux/src/htsmsg.o' failed
make: *** [/home/supervisor/arch/tvheadend-git/src/tvheadend-git/build.linux/src/htsmsg.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...


Files

History

#1

Updated by Jaroslav Kysela over 8 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|9ddcb8d390f1d99f0cf0b3f78ca95024f0c99e94.

Also available in: Atom PDF