dutil: Drop 'noreturn' attribute for ____ilog2_NaN()

To clear this warning:

  [ 97%] Building C object CMakeFiles/pdwtags.dir/pdwtags.o
  In file included from /home/acme/git/pahole/dwarves.h:19,
                   from /home/acme/git/pahole/pdwtags.c:14:
  /home/acme/git/pahole/dutil.h:155:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes]
   int ____ilog2_NaN(void);
   ^~~

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2018-12-26 15:50:34 -03:00
parent ab0cb33e54
commit 851ef335e3
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ int __ilog2_u64(uint64_t n)
/*
* deal with unrepresentable constant logarithms
*/
extern __attribute__((const, noreturn))
extern __attribute__((const))
int ____ilog2_NaN(void);
/**