|
From: | Paul Eggert |
Subject: | bug#32924: 27.0.50; Error building master on macOS Mojave |
Date: | Tue, 9 Oct 2018 11:19:24 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
$ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Wait, the command 'gcc' on macOS actually runs Clang? That's cold. How do you think Apple would feel if we called Emacs "iPhone"?
Anyway, we can pacify Clang by disabling its -Wnull-pointer-arithmetic option, so I installed the attached. I'd rather do this than go back to the old intptr_t way of doing things, which has too many problems with missing type-checking at the C language level (unless you configure with --enable-check-lisp-object-type, which has its own set of problems).
0001-Port-enable-gcc-warnings-to-recent-clang.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |