UFO: Alien Invasion Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report #5336  -  Compile error on Mac OS 10.9: src/client/cl_http.cpp:192:53: error: cannot pass object of non-POD type 'std::__1::nullptr_t' through variadic function
Posted Jun 24, 2014 - updated Jun 27, 2014
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Closed
  • Assigned to
    Not assigned to anyone
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Michael
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Time spent
    2 days, 1 hour
  • Category
    Not determined
  • Resolution
    RESOLVED
  • Priority
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • Complexity
    icon_customdatatype.png Not determined
  • Platform
    icon_customdatatype.png Not determined
  • Architecture
    icon_customdatatype.png Not determined
Issue description
src/client/cl_http.cpp:192:53: error: cannot pass object of non-POD type 'std::__1::nullptr_t' through variadic function; call will
      abort at runtime [-Wnon-pod-varargs]
                curl_easy_setopt(dl->curl, CURLOPT_WRITEFUNCTION, nullptr);
                                                                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstddef:88:17: note: expanded from
      macro 'nullptr'
  1. define nullptr _VSTD::__get_nullptr_t()
                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__config:345:15: note: expanded
      from macro '_VSTD'
  1. define _VSTD std::_LIBCPP_NAMESPACE
              ^
/opt/local/include/curl/curl.h:2311:72: note: expanded from macro 'curl_easy_setopt'
  1. define curl_easy_setopt(handle,opt,param) curl_easy_setopt(handle,opt,param)
Steps to reproduce this issue
Run 'make' on master branch on Mac OS 10.9 after fixing or working around Bug report 5335 - Compile error on Mac OS 10.9: src/game/g_ai.cpp:469:9: error: call to 'abs' is ambiguous