This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -Winline option


David Miller wrote:
In this particular case the inline is in a header file to provide a
function used by applications.

As I understand it <scratch_buffer.h> is a private header, not for use by applications. See, e.g., <https://sourceware.org/ml/libc-alpha/2015-04/msg00047.html> where I ask "These functions are all private to glibc, right?" and the followup <https://sourceware.org/ml/libc-alpha/2015-04/msg00067.html> where Florian says "My concern was the internal ABI between libc and the NSS modules."

If <scratch_buffer.h> is intended to be public then we have a problem, as C99 frowns on public headers defining static inline functions for use in application code.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]