[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tests: factor st_ctime-comparison out of two headers
From: |
Jim Meyering |
Subject: |
Re: [PATCH] tests: factor st_ctime-comparison out of two headers |
Date: |
Fri, 18 Nov 2011 14:38:49 +0100 |
Bruno Haible wrote:
> Jim Meyering wrote:
>> +static inline int
>> +ctime_compare (struct stat const *a, struct stat const *b)
>
> This code uses 'inline'. But the module descriptions
> modules/fdutimensat-tests
> modules/futimens-tests
> modules/utimens-tests
> modules/utimensat-tests
> don't contain an AC_REQUIRE([AC_C_INLINE]).
True, but...
> The simplest fix for this, IMO, would be to remove the 'inline' keyword.
> This part of the tests is not speed critical.
Speed was never the issue, for me.
If we drop the "inline", then any compilation unit that includes
that header without using the function will get a warning about
the unused static function.
Each of those four modules already depends on the ignore-value
module which does happen to AC_REQUIRE([AC_C_INLINE]), so in a
sense no change is required. These are only test modules after all.
However, I will add the four AC_REQUIRE lines.
- [PATCH] tests: factor st_ctime-comparison out of two headers, Jim Meyering, 2011/11/17
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Bruno Haible, 2011/11/18
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers,
Jim Meyering <=
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Bruno Haible, 2011/11/19
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Jim Meyering, 2011/11/19
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Bruno Haible, 2011/11/19
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Simon Josefsson, 2011/11/19
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Ben Pfaff, 2011/11/19
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Simon Josefsson, 2011/11/20
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Peter Johansson, 2011/11/20
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Jim Meyering, 2011/11/20
- Re: [PATCH] tests: factor st_ctime-comparison out of two headers, Ben Pfaff, 2011/11/20
- Re: warning options, Bruno Haible, 2011/11/20