display/display.cpp:371:17: error: non-constant-expression cannot be narrowed from type 'Uint16' (aka 'unsigned short') to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
SDL_Rect r = { x, y, w, h };
^
display/display.cpp:371:17: note: insert an explicit cast to silence this issue
SDL_Rect r = { x, y, w, h };
^
static_cast<Sint16>( )
display/display.cpp:391:48: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
TTF_Font * fontTitle = TTF_OpenFont(DATADIR"/"FONT_FILE, (height / fSize));
^
display/display.cpp:560:5: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
( ( dh.w - sSize ) / dp.w ) + ( i * dh.x ),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
display/display.cpp:583:6: error: non-constant-expression cannot be narrowed from type 'int' to 'Uint16' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
wText,
^~~~~
[...]
Reported by: pkg-fallout
In file included from engine/net/scanner.cpp:1:
In file included from engine/src/config.h:33:
In file included from ./mrt/xml.h:23:
/usr/include/c++/v1/map:629:15: error: object of type 'std::__1::pair<const mrt::Socket::addr, Scanner::Host>' cannot be assigned because its copy assignment operator is implicitly deleted
{__nc = __v.__cc; return *this;}
^
/usr/include/c++/v1/__tree:1645:35: note: in instantiation of member function 'std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>::operator=' requested here
__cache->__value_ = *__first;
^
/usr/include/c++/v1/__tree:1575:9: note: in instantiation of function template specialization 'std::__1::__tree<std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>, std::__1::__map_value_compare<const mrt::Socket::addr, std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>, std::__1::less<const mrt::Socket::addr>, true>, std::__1::allocator<std::__1::__value_type<const mrt::Socket::addr, Scanner::Host> > >::__assign_multi<std::__1::__tree_const_iterator<std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>, std::__1::__tree_node<std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>, void *> *, long> >' requested here
__assign_multi(__t.begin(), __t.end());
^
/usr/include/c++/v1/map:912:21: note: in instantiation of member function 'std::__1::__tree<std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>, std::__1::__map_value_compare<const mrt::Socket::addr, std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>, std::__1::less<const mrt::Socket::addr>, true>, std::__1::allocator<std::__1::__value_type<const mrt::Socket::addr, Scanner::Host> > >::operator=' requested here
__tree_ = __m.__tree_;
^
engine/net/scanner.cpp:256:8: note: in instantiation of member function 'std::__1::map<const mrt::Socket::addr, Scanner::Host, std::__1::less<const mrt::Socket::addr>, std::__1::allocator<std::__1::pair<const mrt::Socket::addr, Scanner::Host> > >::operator=' requested here
hosts = _hosts;
^
/usr/include/c++/v1/utility:325:5: note: copy assignment operator is implicitly deleted because 'pair<const mrt::Socket::addr, Scanner::Host>' has a user-declared move constructor
pair(pair&&) = default;
^
Reported by: pkg-fallout
Ui.cpp:174:18: error: non-constant-expression cannot be narrowed from type 'unsigned long' to 'int' in initializer list [-Wc++11-narrowing]
return (Dot){maxlen+1,splits.size()};
^~~~~~~~
Reported by: pkg-fallout
creature/Uniquem.cpp:628:11: error: cannot initialize return object of type 'int' with an rvalue of
type 'nullptr_t'
return NULL;
^~~~
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
#define NULL nullptr
^~~~~~~
Reported by: pkg-fallout
fileman.cpp:296:33: error: non-constant-expression cannot be narrowed from type 'unsigned long' to 'uint8_t' (aka 'unsigned char') in initializer list [-Wc++11-narrowing]
uint8_t sizes[3]={ CLIENT_NFS,strlen(filename)+1,strlen(mode)+1};
^~~~~~~~~~~~~~~~~~
hmi.cpp:302:97: error: non-constant-expression cannot be narrowed from type 'int' to 'uint8_t'
(aka 'unsigned char') in initializer list [-Wc++11-narrowing]
...0x54, 0x68, 0x64, 0x00, 0x00, 0x00, 0x06, 0x00, 0x01, 0x00, (num_tracks + 1), 0x00, 0xC0 };
^~~~~~~~~~~~~~~~
Reported by: pkg-fallout
In file included from Seat.cpp:37:
./Bitmaps.h:47:46: error: constant expression evaluates to 128 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
^~~~
./Bitmaps.h:47:46: note: insert an explicit cast to silence this issue
0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
^~~~
static_cast<char>( )
Seat.cpp:256:18: error: no matching function for call to 'XCreateBitmapFromData'
s_map[i] = XCreateBitmapFromData(_dpy,
^~~~~~~~~~~~~~~~~~~~~
/usr/local/include/X11/Xlib.h:1604:15: note: candidate function not viable: no known conversion from
'const unsigned char [2018]' to 'const char *' for 3rd argument
extern Pixmap XCreateBitmapFromData(
^
Reported by: pkg-fallout
variables deprecation revision
WITHOUT_NLS 2013-12-13 r336337
WITH_/WITHOUT_ 2014-02-24 r345870
NOPORT(DOC|EXAMPLE)S 2014-04-19 r351587
WITH_BDB_VER 2016-05-02 r414444
OVERRIDE_LINUX_BASE_PORT 2016-09-05 r421387
WITH_OPENSSL_(BASE|PORT) 2016-06-16 r416965
While there, add an ERROR variable that works like DEV_ERROR, but for
user facing errors, and move NOPORTDOCS,
NOPORTEXAMPLES and WITHOUT_NLS to it.
Cleanup bsd.sanity.mk a bit.
Fix fallout.
PR: 224613
Submitted by: mat
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D13490
code/splines/util_str.cpp:477:11: error: reinterpret_cast from 'nullptr_t' to
'const char *' is not allowed
idStr e( reinterpret_cast<const char *>( NULL ) );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
code/splines/util_str.cpp:491:10: error: reinterpret_cast from 'nullptr_t' to
'const char *' is not allowed
a = c + reinterpret_cast<const char *>( NULL );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
code/splines/util_str.cpp:494:6: error: reinterpret_cast from 'nullptr_t' to
'const char *' is not allowed
a = reinterpret_cast<const char *>( NULL ) + d;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
code/splines/util_str.cpp:498:7: error: reinterpret_cast from 'nullptr_t' to
'const char *' is not allowed
a += reinterpret_cast<const char *>( NULL );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PR: 224988
Reported by: jbeich
Linking with LLD currently fails due to preemption of symbols with
protected visibility in a shared object:
/usr/bin/ld: error: cannot preempt symbol: alGetSourcei
>>> defined in /usr/local/lib/libopenal.so
>>> referenced by BBGE/FmodOpenALBridge.cpp
>>> CMakeFiles/aquaria.dir/BBGE/FmodOpenALBridge.cpp.o:(OggDecoder::decode_loop(OggDecoder*))
/usr/bin/ld: error: cannot preempt symbol: alSourceUnqueueBuffers
>>> defined in /usr/local/lib/libopenal.so
>>> referenced by BBGE/FmodOpenALBridge.cpp
>>> CMakeFiles/aquaria.dir/BBGE/FmodOpenALBridge.cpp.o:(OggDecoder::decode_loop(OggDecoder*))
[...]
For now set LLD_UNSAFE=yes so that the port will continue to link with
ld.bfd if /usr/bin/ld is lld, until the issue can be addressed (with a
change in openal-soft or in lld).
Reported by: antoine (via bug 214864)
Aquaria/ScriptInterface.cpp:10412:59: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
#define MK_ALIAS(prefix, suffix, alias) {MK_STR(prefix)"_"MK_STR(alias), l_##prefix##_##suffix},
^
Reported by: antoine (via bug 224669)
- Remove the use of comp_DETECT.
- Remove all comp_DETECT variables.
- Remove a use of comp_DETECT outside of gnome.mk
- Remove py3gobject3.
- Have ports depending directly on devel/py-gobject3 use gnome to do it.
PR: 224618
Submitted by: mat
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D13550