1. 30 May, 2012 1 commit
  2. 29 May, 2012 2 commits
  3. 28 May, 2012 8 commits
  4. 27 May, 2012 7 commits
  5. 24 May, 2012 2 commits
  6. 23 May, 2012 2 commits
  7. 22 May, 2012 6 commits
  8. 21 May, 2012 6 commits
  9. 20 May, 2012 3 commits
  10. 13 May, 2012 2 commits
    • Pieter Hintjens's avatar
      Merge pull request #341 from kennytm/master · 5ef63318
      Pieter Hintjens authored
      Allow the ZMQ_MONITOR code compilable on gcc 4.7 on Linux.
      5ef63318
    • KennyTM~'s avatar
      Allow the ZMQ_MONITOR code compilable on gcc 4.7 on Linux. · c995de65
      KennyTM~ authored
      The current ZMQ_MONITOR code does not compile in gcc 4.7, as -pedantic
      and -Werror are enabled, and ISO C++ doesn't allow casting between
      normal pointers (void*) and function pointers, as pedantically their
      size could be different. This caused the library not compilable. This
      commit workaround the problem by introducing one more indirection, i.e.
      instead of calling
      
          (void *)listener
      
      which is an error, we have to use
      
          *(void **)&listener
      
      which is an undefined behavior :) but works on most platforms
      
      Also, `optval_ = monitor` will not set the parameter in getsockopt(),
      and the extra casting caused the LHS to be an rvalue which again makes
      the code not compilable. The proper way is to pass a pointer of function
      pointer and assign with indirection, i.e. `*optval_ = monitor`.
      
      Also, fixed an asciidoc error in zmq_getsockopt.txt because the `~~~~`
      is too long.
      c995de65
  11. 11 May, 2012 1 commit