[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: glr.cc: disable warnings from Clang on macOS
From: |
Hans Åberg |
Subject: |
Re: glr.cc: disable warnings from Clang on macOS |
Date: |
Sun, 8 Dec 2019 18:04:39 +0100 |
> On 8 Dec 2019, at 17:01, Akim Demaille <address@hidden> wrote:
>
> $ cat test.cc
> #include <stddef.h>
> #include <stdint.h>
>
> ptrdiff_t half_max_capacity = PTRDIFF_MAX;
> $ clang++-mp-9.0 -pedantic -std=c++98 /tmp/test.cc -c
In C++, the header is cstddef, and from C++11, there is cstdint, too. C++11
defines nullptr_t which is not in the C header.
https://en.cppreference.com/w/cpp/header
https://en.cppreference.com/w/cpp/header/cstddef
https://en.cppreference.com/w/cpp/header/cstdint
https://en.cppreference.com/w/c/header
https://en.cppreference.com/w/c/types