Closed neomantra closed 7 years ago
Note to selves: switch between gcc and clang, Ubuntu 14.04
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100
update-alternatives: using /usr/bin/gcc-4.8 to provide /usr/bin/gcc (gcc) in auto mode
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/clang-3.5 100
update-alternatives: using /usr/bin/clang-3.5 to provide /usr/bin/gcc (gcc) in auto mode
$ sudo update-alternatives --config gcc
to choose which to use@neomantra these warnings indeed also show when using clang on Linux. Interestingly, while it appears that both GCC and clang use the same gnu99 compatibility mode, the latter yields these warnings.
@neomantra please verify that this too can be closed
@itamarhaber I'm really sorry I missed your @
request on this over a year ago! I came back to the issues to pick up anything people had added and found this.
I've just tested the latest on Zesty with gcc-6 and clang-4 and they are both happy.
Building on clang (see #6) yields the following warnings:
Removing
unsigned
fixes the first two. I didn't reason about the third too much though, so not sure if it is really a problem or not.