Skip to content

misc/bin2c: Silence warning on FreeBSD (clang)

Silence the following warning on FreeBSD:

../misc/bin2c/rtems-bin2c.c:143:16: warning: '_Generic' is a C11 extension [-Wc11-extensions]
  143 |   ifbasename = basename(ifbasename_to_free);
      |                ^
/usr/include/libgen.h:60:21: note: expanded from macro 'basename'
   60 | #define basename(x)     __generic(x, const char *, __old_basename, basename)(x)
      |                         ^
/usr/include/sys/cdefs.h:322:2: note: expanded from macro '__generic'
  322 |         _Generic(expr, t: yes, default: no)
      |         ^
1 warning generated.

Merge request reports