build: lib/util/string_wrappers.h: fix optimisation check for clang
authorRalph Boehme <slow@samba.org>
Sat, 11 Oct 2014 18:50:46 +0000 (20:50 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 20 Oct 2014 12:41:09 +0000 (14:41 +0200)
commitdbc41a5451fcd2001d43558bf5ade9828296a497
treef41e9e7fab0c91f971744731c62d151f1b9f7d83
parent8ccf5f66691e2bbf0883afa658282ef2ac60b015
build: lib/util/string_wrappers.h: fix optimisation check for clang

Building with clang resulted in an error with undefined symbols
___unsafe_string_function_usage_here_size_t__ etc. Turns out the
existing check whether the compiler optimizes out functions doesn't
match the use case, ie the check said yes, but the functions were not
optimized out.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Oct 20 14:41:09 CEST 2014 on sn-devel-104
source3/wscript