#40 Building libofx on Mac OS X Lion and Mountain Lion using clang throws warnings

v1.0_(example)
open
nobody
None
5
2013-04-17
2013-04-16
mkae
No

Building libofx on Mac OS X Lion and Mountain Lion throws probably due to the use of clang these warnings:


messages.cpp:49:26: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
ofx_utilities.cpp:238:39: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
1 warning generated.
1 warning generated.
ofx_container_account.cpp:194:31: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
1 warning generated.


The above does not happen on Snow Leopard, since there the gcc is being used.

Discussion

  • Ok, committed the three changed lined into Git. Feel free to verify whether the code from git now compiles without warnings/error on clang.

     
  • mkae
    mkae
    2013-04-16

    I do not pull in sources from git, but instead use release tarballs.

    So, I'll have to wait for now until a new libofx version gets released.

     
  • mkae
    mkae
    2013-04-17

    0.9.8 fixes the issue.

    This ticket can be closed.

    Thanks!