diff options
Diffstat (limited to 'lib/explicit_bzero.c')
-rw-r--r-- | lib/explicit_bzero.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/explicit_bzero.c b/lib/explicit_bzero.c index 09093467769..78ec747c3a6 100644 --- a/lib/explicit_bzero.c +++ b/lib/explicit_bzero.c @@ -1,5 +1,5 @@ /* Erasure of sensitive data, generic implementation. - Copyright (C) 2016-2017 Free Software Foundation, Inc. + Copyright (C) 2016-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -40,7 +40,7 @@ explicit_bzero (void *s, size_t len) explicit_memset (s, 0, len); #else memset (s, '\0', len); -# ifdef __GNUC__ +# if defined __GNUC__ && !defined __clang__ /* Compiler barrier. */ asm volatile ("" ::: "memory"); # endif |