1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- Fix build with clang 6.0

This commit is contained in:
Dmitry Marakasov 2018-06-21 23:02:29 +00:00
parent 082725e73a
commit eda8841921
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=473008
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,16 @@
--- configure.orig 2008-08-02 10:10:49 UTC
+++ configure
@@ -2329,12 +2329,7 @@ else
fi
fi
for ac_declaration in \
- '' \
- 'extern "C" void std::exit (int) throw (); using std::exit;' \
- 'extern "C" void std::exit (int); using std::exit;' \
- 'extern "C" void exit (int) throw ();' \
- 'extern "C" void exit (int);' \
- 'void exit (int);'
+ ''
do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */

View File

@ -0,0 +1,11 @@
--- src/NewHighScoreState.cxx.orig 2007-07-29 16:48:20 UTC
+++ src/NewHighScoreState.cxx
@@ -396,7 +396,7 @@ NewHighScoreState::unicodeCharacterPress
// FIXME: We are only interessted with ASCII values.
if ( 0 == (code & 0xff80) )
{
- char character[2] = {toupper (static_cast<char>(code & 0x7f)), '\0'};
+ char character[2] = {static_cast<char>(toupper (static_cast<char>(code & 0x7f)), '\0')};
std::string::size_type characterPos =
m_CursorValues.find (std::string (character));
if ( std::string::npos != characterPos )