[U-Boot] [RFC 06/10] cc-option: make it work with clang

Masahiro Yamada
2014-06-10T08:39:03Z

Hi Jeroen,

On Sat, 31 May 2014 22:32:20 +0200
Jeroen Hofstee <jeroen@myspectrum.nl> wrote:

> By default clang will return echo a warning if an option is unknown.
> Therefore turn warnings into errors when polling for options.

As far as I tested with clang 3.5 on Ubuntu 14.04,
it looks different.

$ clang -fno-delete-null-pointer-checks helloworld.c
clang: error: unknown argument: '-fno-delete-null-pointer-checks'
$ echo $?
1

Best Regards
Masahiro Yamada