diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-08-18 11:41:35 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-08-18 11:42:04 +0200 |
commit | 9ef8de40e224054718da2af38e0ca65abbf5305d (patch) | |
tree | 2d688f6f72af6cd0985fd45d98fe0cba1922d78d /tdeioslave/man | |
parent | 1bfa9332c60381fe0f435c85fc636d575474438e (diff) | |
download | tdebase-9ef8de40e224054718da2af38e0ca65abbf5305d.tar.gz tdebase-9ef8de40e224054718da2af38e0ca65abbf5305d.zip |
Fix FTBFS with stricter C++11
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 2bcacaf3312aa854cbe81ba4c33a647f2e79287f)
Diffstat (limited to 'tdeioslave/man')
-rw-r--r-- | tdeioslave/man/man2html.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tdeioslave/man/man2html.cpp b/tdeioslave/man/man2html.cpp index eee3ac803..8dd23dc6a 100644 --- a/tdeioslave/man/man2html.cpp +++ b/tdeioslave/man/man2html.cpp @@ -656,7 +656,7 @@ static void fill_old_character_definitions( void ) for (size_t i = 0; i < sizeof(standardchar)/sizeof(CSTRDEF); i++) { const int nr = standardchar[i].nr; - const char temp[3] = { nr / 256, nr % 256, 0 }; + const char temp[3] = { (char)(nr / 256), (char)(nr % 256), 0 }; TQCString name( temp ); s_characterDefinitionMap.insert( name, StringDefinition( standardchar[i].slen, standardchar[i].st ) ); } @@ -3713,7 +3713,7 @@ static char *scan_request(char *c) } case REQ_Fo: // mdoc(7) "Function definition Opening" { - char* font[2] = { "B", "R" }; + const char* font[2] = { "B", "R" }; c+=j; if (*c=='\n') c++; char *eol=strchr(c,'\n'); @@ -3748,7 +3748,7 @@ static char *scan_request(char *c) // .Fc has no parameter c+=j; c=skip_till_newline(c); - char* font[2] = { "B", "R" }; + const char* font[2] = { "B", "R" }; out_html(set_font(font[i&1])); out_html(")"); out_html(set_font("R")); @@ -3764,7 +3764,7 @@ static char *scan_request(char *c) } case REQ_Fa: // mdoc(7) "Function definition argument" { - char* font[2] = { "B", "R" }; + const char* font[2] = { "B", "R" }; c+=j; if (*c=='\n') c++; sl=fill_words(c, wordlist, &words, true, &c); |