chiark / gitweb /
Fix OS X build failure due to a deprecated method.
authorSimon Tatham <anakin@pobox.com>
Fri, 18 Sep 2015 11:20:32 +0000 (12:20 +0100)
committerSimon Tatham <anakin@pobox.com>
Fri, 18 Sep 2015 11:20:32 +0000 (12:20 +0100)
commitba9e0d586ec8d2662d7ff6065797c6ef327623a7
tree7f62b63aab4010617ac5e4c65bf258f23cc30c14
parenteda5a867872e718b62ea52373ec9f44aa0c3bda2
Fix OS X build failure due to a deprecated method.

Apple upgraded me to Xcode 7 yesterday, and now [NSString cString]
gives a deprecation warning, which -Werror turns into a full-on build
failure. Explicitly specify an encoding.

(I mention in a comment that there's an alternative piece of API that
I possibly ought to be using instead, but until I make a concrete
decision about where my backwards compatibility threshold is, I'll
leave it as it is for the moment.)
osx.m