Project

General

Profile

Bug #2871

Build Warning (all warnings being treated as errors)

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

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

100%

Estimated time:
Found in version:
tvheadend-git-6421+gef5b43a
Affected Versions:

Description

I'm on Archlinux and build off current git version (tvheadend-git 6421+gef5b43a-1) fails...

src/http.c: In function 'http_encoding_valid':
src/http.c:331:17: error: 'saveptr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
while (*tok ' ')
^
cc1: all warnings being treated as errors
Makefile:428: recipe for target '/home/supervisor/arch/tvheadend-git/src/tvheadend/build.linux/src/http.o' failed
make: *** [/home/supervisor/arch/tvheadend-git/src/tvheadend/build.linux/src/http.o] Error 1
> ERROR: A failure occurred in build().
Aborting...


Files

History

#1

Updated by S. Benz over 9 years ago

Added a possible fix here (I can't really test, as my compiler didn't complain in the first place): https://github.com/tvheadend/tvheadend/pull/652

#2

Updated by Sebastian K. over 9 years ago

For me build worked again.

#3

Updated by S. Benz over 9 years ago

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

Applied in changeset commit:tvheadend|ce2b077ca406582c3183a25b848735095618db92.

Also available in: Atom PDF