D13080: Silence -Wformat-truncation warnings

Mariusz Glebocki noreply at phabricator.kde.org
Wed May 23 21:28:05 UTC 2018


mglb created this revision.
mglb added a reviewer: Konsole.
Restricted Application added a project: Konsole.
Restricted Application added a subscriber: konsole-devel.
mglb requested review of this revision.

REVISION SUMMARY
  Add a few bytes to a small arrays on stack in order to make compiler
  happy. Those warnings are invalid in this context (as long as terminal
  width and height are not larger than 8-digits-long number).
  
  BUG: 394565

TEST PLAN
  - Build Konsole with GCC 8 and `-Wformat-truncation` flag
  
  Expected result: no format-truncation warnings
  Actual result: three format-truncation warnings appear

REPOSITORY
  R319 Konsole

BRANCH
  arc/silence-Wformat-truncation-warnings (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D13080

AFFECTED FILES
  src/Vt102Emulation.cpp

To: mglb, #konsole
Cc: konsole-devel, #konsole, herrold, ngraham, maximilianocuria, hindenburg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20180523/7ac1ce7d/attachment-0001.html>


More information about the konsole-devel mailing list