You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Cliff Jansen <cl...@gmail.com> on 2013/01/24 09:24:11 UTC

Review Request: part 2 of gcc flags for C++ compatibility

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9085/
-----------------------------------------------------------

Review request for qpid, Andrew Stitcher, Kenneth Giusti, Rafael Schloming, and Mary Hinton.


Description
-------

gcc flag "-write-strings" that provides c++ checking


This addresses bug proton-159.
    https://issues.apache.org/jira/browse/proton-159


Diffs
-----

  http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/CMakeLists.txt 1435762 
  http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/recv.c 1435762 
  http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/send.c 1435762 
  http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/include/proton/util.h 1435762 
  http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/dispatcher/dispatcher.h 1435762 
  http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/dispatcher/dispatcher.c 1435762 
  http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/messenger.c 1435762 
  http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/proton.c 1435762 
  http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/ssl/openssl.c 1435762 
  http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/util.c 1435762 

Diff: https://reviews.apache.org/r/9085/diff/


Testing
-------

compiles on linux and runs proton test.  Along with other patches, also compiles in Visual Studio.


Thanks,

Cliff Jansen


Re: Review Request: part 2 of gcc flags for C++ compatibility

Posted by Rafael Schloming <rh...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9085/#review15775
-----------------------------------------------------------

Ship it!


Ship It!

- Rafael Schloming


On Jan. 24, 2013, 8:24 a.m., Cliff Jansen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/9085/
> -----------------------------------------------------------
> 
> (Updated Jan. 24, 2013, 8:24 a.m.)
> 
> 
> Review request for qpid, Andrew Stitcher, Kenneth Giusti, Rafael Schloming, and Mary Hinton.
> 
> 
> Description
> -------
> 
> gcc flag "-write-strings" that provides c++ checking
> 
> 
> This addresses bug proton-159.
>     https://issues.apache.org/jira/browse/proton-159
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/CMakeLists.txt 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/recv.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/send.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/include/proton/util.h 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/dispatcher/dispatcher.h 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/dispatcher/dispatcher.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/messenger.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/proton.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/ssl/openssl.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/util.c 1435762 
> 
> Diff: https://reviews.apache.org/r/9085/diff/
> 
> 
> Testing
> -------
> 
> compiles on linux and runs proton test.  Along with other patches, also compiles in Visual Studio.
> 
> 
> Thanks,
> 
> Cliff Jansen
> 
>


Re: Review Request: part 2 of gcc flags for C++ compatibility

Posted by Mary Hinton <m....@nc.rr.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9085/#review15666
-----------------------------------------------------------

Ship it!


Ship It!

- Mary Hinton


On Jan. 24, 2013, 8:24 a.m., Cliff Jansen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/9085/
> -----------------------------------------------------------
> 
> (Updated Jan. 24, 2013, 8:24 a.m.)
> 
> 
> Review request for qpid, Andrew Stitcher, Kenneth Giusti, Rafael Schloming, and Mary Hinton.
> 
> 
> Description
> -------
> 
> gcc flag "-write-strings" that provides c++ checking
> 
> 
> This addresses bug proton-159.
>     https://issues.apache.org/jira/browse/proton-159
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/CMakeLists.txt 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/recv.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/send.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/include/proton/util.h 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/dispatcher/dispatcher.h 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/dispatcher/dispatcher.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/messenger.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/proton.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/ssl/openssl.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/util.c 1435762 
> 
> Diff: https://reviews.apache.org/r/9085/diff/
> 
> 
> Testing
> -------
> 
> compiles on linux and runs proton test.  Along with other patches, also compiles in Visual Studio.
> 
> 
> Thanks,
> 
> Cliff Jansen
> 
>


Re: Review Request: part 2 of gcc flags for C++ compatibility

Posted by Cliff Jansen <cl...@gmail.com>.

> On Jan. 25, 2013, 7:01 p.m., Kenneth Giusti wrote:
> > http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/messenger.c, line 717
> > <https://reviews.apache.org/r/9085/diff/1/?file=251495#file251495line717>
> >
> >     If/when possible, I'd prefer declaring these as pointer-to-const, rather than casting away the const-ness.
> >     
> >     That probably requires more changes to any functions that take them as arguments (like parse_url), but that's for the best.  IMHO the proton-c codebase doesn't use 'const' correctly in a lot of cases.

I created a separate issue to fix this.  https://issues.apache.org/jira/browse/PROTON-206


- Cliff


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9085/#review15700
-----------------------------------------------------------


On Jan. 24, 2013, 8:24 a.m., Cliff Jansen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/9085/
> -----------------------------------------------------------
> 
> (Updated Jan. 24, 2013, 8:24 a.m.)
> 
> 
> Review request for qpid, Andrew Stitcher, Kenneth Giusti, Rafael Schloming, and Mary Hinton.
> 
> 
> Description
> -------
> 
> gcc flag "-write-strings" that provides c++ checking
> 
> 
> This addresses bug proton-159.
>     https://issues.apache.org/jira/browse/proton-159
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/CMakeLists.txt 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/recv.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/send.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/include/proton/util.h 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/dispatcher/dispatcher.h 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/dispatcher/dispatcher.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/messenger.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/proton.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/ssl/openssl.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/util.c 1435762 
> 
> Diff: https://reviews.apache.org/r/9085/diff/
> 
> 
> Testing
> -------
> 
> compiles on linux and runs proton test.  Along with other patches, also compiles in Visual Studio.
> 
> 
> Thanks,
> 
> Cliff Jansen
> 
>


Re: Review Request: part 2 of gcc flags for C++ compatibility

Posted by Kenneth Giusti <kg...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9085/#review15700
-----------------------------------------------------------



http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/messenger.c
<https://reviews.apache.org/r/9085/#comment33849>

    If/when possible, I'd prefer declaring these as pointer-to-const, rather than casting away the const-ness.
    
    That probably requires more changes to any functions that take them as arguments (like parse_url), but that's for the best.  IMHO the proton-c codebase doesn't use 'const' correctly in a lot of cases.


- Kenneth Giusti


On Jan. 24, 2013, 8:24 a.m., Cliff Jansen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/9085/
> -----------------------------------------------------------
> 
> (Updated Jan. 24, 2013, 8:24 a.m.)
> 
> 
> Review request for qpid, Andrew Stitcher, Kenneth Giusti, Rafael Schloming, and Mary Hinton.
> 
> 
> Description
> -------
> 
> gcc flag "-write-strings" that provides c++ checking
> 
> 
> This addresses bug proton-159.
>     https://issues.apache.org/jira/browse/proton-159
> 
> 
> Diffs
> -----
> 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/CMakeLists.txt 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/recv.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/examples/messenger/c/send.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/include/proton/util.h 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/dispatcher/dispatcher.h 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/dispatcher/dispatcher.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/messenger.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/proton.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/ssl/openssl.c 1435762 
>   http://svn.apache.org/repos/asf/qpid/proton/trunk/proton-c/src/util.c 1435762 
> 
> Diff: https://reviews.apache.org/r/9085/diff/
> 
> 
> Testing
> -------
> 
> compiles on linux and runs proton test.  Along with other patches, also compiles in Visual Studio.
> 
> 
> Thanks,
> 
> Cliff Jansen
> 
>