| Summary: | Building k3b-2.0.3 with GCC-6 fails with "error: narrowing conversion of '172' from 'int' to 'char' inside { } [-Wnarrowing]" | ||
|---|---|---|---|
| Product: | [Applications] k3b | Reporter: | nsane457 |
| Component: | general | Assignee: | K3b Bugs <k3b-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | michalm, nsane457, trueg |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/k3b/da6373a3e1ae9199ee50e326fe296c03b50625ae | Version Fixed/Implemented In: | 2.0.4 |
| Sentry Crash Report: | |||
| Attachments: | k3b-2.0.3-gcc6.patch | ||
Created attachment 98973 [details]
k3b-2.0.3-gcc6.patch
A patch to apply explicit casts
Git commit da6373a3e1ae9199ee50e326fe296c03b50625ae by Johannes Obermayr, on behalf of P. Levine.
Committed on 14/05/2016 at 19:43.
Pushed by jobermayr into branch '2.0'.
Fix narrowing conversions from 'int' to 'const char' inside { }.
Please provide a proper git patch including author information next time ...
FIXED-IN: 2.0.4
M +1 -1 libk3b/projects/k3bcdrdaowriter.cpp
M +11 -11 libk3b/tools/k3bwavefilewriter.cpp
M +11 -11 plugins/encoder/external/k3bexternalencoder.cpp
http://commits.kde.org/k3b/da6373a3e1ae9199ee50e326fe296c03b50625ae
|
Building k3b-2.0.3 with GCC-6 fails with narrowing conversion errors such as: > /var/tmp/portage/app-cdr/k3b-2.0.3-r2/work/k3b-2.0.3/libk3b/tools/k3bwavefilewriter.cpp: In member function 'void K3b::WaveFileWriter::writeEmptyHeader()': > /var/tmp/portage/app-cdr/k3b-2.0.3-r2/work/k3b-2.0.3/libk3b/tools/k3bwavefilewriter.cpp:125:9: error: narrowing conversion of '172' from 'int' to 'char' inside { } [-Wnarrowing GCC-6 no longer allows for narrowing conversions inside braced initialization lists. Reproducible: Always Steps to Reproduce: 1. emerge -1 =app-cdr/k3b-2.0.3-r2 Actual Results: error: narrowing conversion of '172' from 'int' to 'char' inside { } [-Wnarrowing] Expected Results: Successful merge.