Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Warning in LLVM Clang Date: Fri, 10 Jan 2020 09:34:46 -0800 Organization: None to speak of Lines: 29 Message-ID: <877e1zkyfd.fsf@nosuchdomain.example.com> References: <87eewclgou.fsf@bsb.me.uk> <87zhezjpzn.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="e12d2e2e5c667bdb5c60b35cd8bd7a9b"; logging-data="31263"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185/uLd5UIFtvMg5stBt420" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:vycgxzhzH3N/RHcgNSIkTpArEOo= sha1:59RlZb2hIt8z5s899SfiXGc/LZI= Xref: csiph.com comp.lang.c:148914 Mehdi Amini writes: > On 1/10/20 6:38 AM, James Kuyper wrote: >> On 1/9/20 7:45 AM, Mehdi Amini wrote: > > [...] >> >> I've heard that there are platforms where "gcc" is actually an alias for >> clang. Do you have any reason to believe that's the case on the system >> you're using? It doesn't look like it. Try "gcc --version". > > Actually I wrote the clang specific #pragma 's. For one way , I can > change them to GCC specific ones. It sounds like you're still not certain whether you're using gcc or clang. James is correct, on some systems the "gcc" command invokes the clang compiler. I believe MacOS is one such system. (Apple decided they preferred clang over gcc, but a lot of build scripts assume the C compiler is named "gcc".) What OS are you on? What does "gcc --version" print? (That will tell you whether "gcc" invokes gcc or clang.) When you invoke your Makefile, does it print the commands as it executes them, and does that tell you what compiler command it's invoking? -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com [Note updated email address] Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */