diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-09-03 13:23:05 -0500 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-08-17 02:16:43 +0200 |
commit | 0d22b7ffc6ba832bc396390dbc45a8a11efce476 (patch) | |
tree | 5ec3aa0177514a21aaacc312e4246afbf0dc4133 | |
parent | a46fc4bdd3a1d0c6d1b93737729a24be3de402b8 (diff) | |
download | tdelibs-0d22b7ffc6ba832bc396390dbc45a8a11efce476.tar.gz tdelibs-0d22b7ffc6ba832bc396390dbc45a8a11efce476.zip |
Fix compiler warnings
(cherry picked from commit 5e9959ef854ca8d353b91e9d8305f0fc5e117712)
-rw-r--r-- | tdeio/tdeio/kshred.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tdeio/tdeio/kshred.cpp b/tdeio/tdeio/kshred.cpp index 0bc01c20a..b013e2059 100644 --- a/tdeio/tdeio/kshred.cpp +++ b/tdeio/tdeio/kshred.cpp @@ -206,9 +206,11 @@ KShred::flush() bool KShred::shred() { - unsigned char p[6][3] = {{'\222', '\111', '\044'}, {'\111', '\044', '\222'}, - {'\044', '\222', '\111'}, {'\155', '\266', '\333'}, - {'\266', '\333', '\155'}, {'\333', '\155', '\266'}}; + // WARNING + // These numbers are octal. Do not remove the leading zeros! + unsigned char p[6][3] = {{0222, 0111, 044}, {0111, 044, 0222}, + { 044, 0222, 0111}, {0155, 0266, 0333}, + {0266, 0333, 0155}, {0333, 0155, 0266}}; TQString msg = i18n("Shredding: pass %1 of 35"); emit processedSize(0); |