Skip to content

Instantly share code, notes, and snippets.

@juanfal
Created July 6, 2015 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanfal/6d2baa88e31ea9f0a0c1 to your computer and use it in GitHub Desktop.
Save juanfal/6d2baa88e31ea9f0a0c1 to your computer and use it in GitHub Desktop.
final errors in Codeblock compiling… Codeblock 10350-trunk on OSX 10.10
In file included from debuggergdb.cpp:10:
In file included from ../../../src/include/sdk.h:17:
In file included from ../../../src/include/sdk_precomp.h:13:
In file included from ../../../src/include/sdk_common.h:150:
In file included from ../../../src/include/filemanager.h:13:
../../../src/include/backgroundthread.h:143:13: warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert
to true [-Wundefined-bool-conversion]
if (this && IsRunning())
^~~~ ~~
In file included from debuggergdb.cpp:10:
In file included from ../../../src/include/sdk.h:17:
In file included from ../../../src/include/sdk_precomp.h:13:
In file included from ../../../src/include/sdk_common.h:43:
../../../src/include/prep.h:33:75: error: use of overloaded operator '==' is ambiguous (with operand types 'const std::__1::shared_ptr<GDBWatch>' and
'int')
template<typename T> bool equals(T const& rhs) const { return rhs == 0; }
~~~ ^ ~
../../../src/include/prep.h:45:99: note: in instantiation of function template specialization 'nullptr_t::equals<std::__1::shared_ptr<GDBWatch> >'
requested here
template<typename T> inline bool operator==(T const& lhs, const nullptr_t& rhs) { return rhs.equals(lhs); }
^
debuggergdb.cpp:504:27: note: in instantiation of function template specialization 'operator==<std::__1::shared_ptr<GDBWatch> >' requested here
if (m_localsWatch == nullptr)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4765:1: note: candidate function
[with _Tp = GDBWatch]
operator==(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT
^
../../../src/include/prep.h:33:75: note: built-in candidate operator==(int, int)
template<typename T> bool equals(T const& rhs) const { return rhs == 0; }
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/windowid.h:135:13: note: candidate function
inline bool operator==(int lhs, const wxWindowIDRef& rhs)
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/string.h:4044:13: note: candidate function
inline bool operator==(int c, const wxString& s) { return s.IsSameAs(c); }
^
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned __int128, int)
template<typename T> bool equals(T const& rhs) const { return rhs == 0; }
^
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long long, int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long, int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned int, int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(__int128, int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long long, int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long, int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(int, unsigned __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(int, unsigned long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(int, unsigned long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(float, int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(int, unsigned int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(int, __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(int, long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(int, long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(int, long double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(int, double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(int, float)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long double, int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(double, int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(double, long double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(double, long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(double, long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(double, __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(double, unsigned int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(double, unsigned long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(double, unsigned long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(double, unsigned __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long double, float)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long double, double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long double, long double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(double, double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long double, long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long double, long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long double, __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long double, unsigned int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long double, unsigned long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long double, unsigned long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long double, unsigned __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(double, float)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(float, unsigned __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(float, unsigned long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(float, unsigned long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(float, unsigned int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(float, __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(float, long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(float, long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(float, long double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(float, double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(float, float)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long, float)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long, double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long, long double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned __int128, unsigned long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long, long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long, long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long, __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long, unsigned int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long, unsigned long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long, unsigned long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long, unsigned __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned __int128, unsigned __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long long, double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long long, long double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned __int128, unsigned long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long long, long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long long, long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long long, __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long long, unsigned int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long long, unsigned long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long long, unsigned long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long long, unsigned __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(__int128, float)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(__int128, double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(__int128, long double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned __int128, unsigned int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(__int128, long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(__int128, long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(__int128, __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(__int128, unsigned int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(__int128, unsigned long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(__int128, unsigned long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(__int128, unsigned __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned int, float)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned int, double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned int, long double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned __int128, __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned int, long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned int, long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned int, __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned int, unsigned int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned int, unsigned long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned int, unsigned long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned int, unsigned __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long, float)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long, double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long, long double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned __int128, long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long, long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long, long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long, __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long, unsigned int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long, unsigned long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long, unsigned long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long, unsigned __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long long, float)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long long, double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long long, long double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned __int128, long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long long, long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long long, long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long long, __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long long, unsigned int)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long long, unsigned long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long long, unsigned long long)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned long long, unsigned __int128)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned __int128, float)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned __int128, double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(unsigned __int128, long double)
../../../src/include/prep.h:33:75: note: built-in candidate operator==(long long, float)
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/windowid.h:140:13: note: candidate function
inline bool operator==(long lhs, const wxWindowIDRef& rhs)
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/unichar.h:295:1: note: candidate function
wxDEFINE_COMPARISONS_BY_REV(char, const wxUniChar&)
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/defs.h:800:33: note: expanded from macro 'wxDEFINE_COMPARISONS_BY_REV'
wxFOR_ALL_COMPARISONS_2_REV(wxDEFINE_COMPARISON_BY_REV, T1, T2)
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/defs.h:768:5: note: expanded from macro 'wxFOR_ALL_COMPARISONS_2_REV'
m(==,x,y,==) m(!=,x,y,!=) m(>=,x,y,<=) \
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/defs.h:783:17: note: expanded from macro 'wxDEFINE_COMPARISON_BY_REV'
inline bool operator op(T1 x, T2 y) { return y oprev x; }
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/unichar.h:298:1: note: candidate function
wxDEFINE_COMPARISONS_BY_REV(wchar_t, const wxUniChar&)
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/defs.h:800:33: note: expanded from macro 'wxDEFINE_COMPARISONS_BY_REV'
wxFOR_ALL_COMPARISONS_2_REV(wxDEFINE_COMPARISON_BY_REV, T1, T2)
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/defs.h:768:5: note: expanded from macro 'wxFOR_ALL_COMPARISONS_2_REV'
m(==,x,y,==) m(!=,x,y,!=) m(>=,x,y,<=) \
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/defs.h:783:17: note: expanded from macro 'wxDEFINE_COMPARISON_BY_REV'
inline bool operator op(T1 x, T2 y) { return y oprev x; }
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/string.h:4042:13: note: candidate function
inline bool operator==(char c, const wxString& s) { return s.IsSameAs(c); }
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/string.h:4043:13: note: candidate function
inline bool operator==(wchar_t c, const wxString& s) { return s.IsSameAs(c); }
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/longlong.h:1048:13: note: candidate function
inline bool operator==(long l, const wxLongLong& ll) { return ll == l; }
^
/usr/local/Cellar/wxmac/3.0.2/include/wx-3.0/wx/longlong.h:1061:13: note: candidate function
inline bool operator==(unsigned long l, const wxULongLong& ull) { return ull == l; }
^
4 warnings and 1 error generated.
make[4]: *** [debuggergdb.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment