Warnings on Current Xcode

edited May 2013 in General discussions
It is not a big deal, but it just keeps popping up:

orx/code/include/utils/orxString.h:746:20: Implicit conversion loses integer precision: 'long' to 'orxS32' (aka 'int')
orx/code/include/utils/orxString.h:746:45: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
orx/code/include/utils/orxString.h:840:20: Implicit conversion loses integer precision: 'unsigned long' to 'orxU32' (aka 'unsigned int')
orx/code/include/utils/orxString.h:840:46: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
orx/code/include/utils/orxString.h:934:46: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
orx/code/include/utils/orxString.h:1028:47: Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'

Comments

  • edited May 2013
    Which compiler/version are you using? llvm/clang?

    I'll have a look into that, thanks!
  • edited May 2013
    I am using Apple LLVM 4.2 compiler with GNU99 C language dialect [-std=gnu99]

    A while ago I decided that LLVM generates better messages, so I prefer LLVM. Warnings are certainly not a big deal. Just FYI.
  • edited May 2013
    No worries, if I can remove as many warnings as possible, it's always a good thing! :)

    However I don't have access to that version of llvm, so I'll try to guess exactly where it complains given your log.
Sign In or Register to comment.