Menu

RegexKitLite update solving 'Semantic I...

2012-03-28
2013-04-24
  • Harald E Brandt

    Harald E Brandt - 2012-03-28

    With Xcode 4.3 on Mac OS X 10.7.3, I get lots of compiler warnings "Semantic Issue" for RegexKitLite:
    Passing 'void *volatile __strong *' to parameter of type 'void *__strong *' discards qualifiers
    and
    Passing 'void *volatile __strong *' to parameter of type 'void *__strong *volatile' discards qualifiers

    Although they appear harmless, it is very annoying since I basically strive for zero warnings since that makes it much easier to be alerted of warnings for my own code. With Xcode 3.2, I did not get those warnings for RegexKitLite.

    Any chance of an update to RegexKitLite?
    Last version is from 2010/04/18.

    PS: I develop for Deployment and Base SDK OS X 10.6, so NSRegularExpression is not really an option.

     
  • Harald E Brandt

    Harald E Brandt - 2012-03-28

    I'd like to comment that at stackoverflow, I got a useful answer on how to silence the warnings:

    With clang, I silenced the warnings as follows:

    At the top of RegexKitLite.m:

    #pragma clang diagnostic push
    #pragma clang diagnostic ignored "-Wincompatible-pointer-types"
    

    And at the bottom:

    #pragma clang diagnostic pop
    
     

Log in to post a comment.