GNU bug report logs - #17329
[PATCH] * gl/lib/fadvise.h (fadvice_t): Remove trailing comma from enum.

Previous Next

Package: coreutils;

Reported by: Edgars Irmejs <edgars.irmejs <at> gmail.com>

Date: Wed, 23 Apr 2014 20:57:02 UTC

Severity: normal

Tags: patch

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17329 in the body.
You can then email your comments to 17329 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#17329; Package coreutils. (Wed, 23 Apr 2014 20:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Edgars Irmejs <edgars.irmejs <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 23 Apr 2014 20:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Edgars Irmejs <edgars.irmejs <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: [PATCH] * gl/lib/fadvise.h (fadvice_t): Remove trailing comma from
 enum.
Date: Wed, 23 Apr 2014 22:20:40 +0300
[Message part 1 (text/plain, inline)]
---
 ChangeLog |    4 ++++
 gl/lib/fadvise.h  |    4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e69de29..cf30f09 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -0,0 +1,4 @@
+2014-04-23  Edgars Irmejs <edgars.irmejs <at> gmail.com>
+
+* gl/lib/fadvise.h (fadvice_t): Remove trailing comma from enum.
+
diff --git a/gl/lib/fadvise.h b/gl/lib/fadvise.h
index ce4bd76..11ecd8f 100644
--- a/gl/lib/fadvise.h
+++ b/gl/lib/fadvise.h
@@ -48,7 +48,7 @@ typedef enum {
   FADVISE_NOREUSE =    POSIX_FADV_NOREUSE,
   FADVISE_DONTNEED =   POSIX_FADV_DONTNEED,
   FADVISE_WILLNEED =   POSIX_FADV_WILLNEED,
-  FADVISE_RANDOM =     POSIX_FADV_RANDOM,
+  FADVISE_RANDOM =     POSIX_FADV_RANDOM
 } fadvice_t;
 #else
 typedef enum {
@@ -57,7 +57,7 @@ typedef enum {
   FADVISE_NOREUSE,
   FADVISE_DONTNEED,
   FADVISE_WILLNEED,
-  FADVISE_RANDOM,
+  FADVISE_RANDOM
 } fadvice_t;
 #endif

--
1.7.9
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#17329; Package coreutils. (Wed, 23 Apr 2014 21:21:01 GMT) Full text and rfc822 format available.

Message #8 received at 17329 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Edgars Irmejs <edgars.irmejs <at> gmail.com>
Cc: 17329 <at> debbugs.gnu.org
Subject: Re: bug#17329: [PATCH] * gl/lib/fadvise.h (fadvice_t): Remove trailing
 comma from enum.
Date: Wed, 23 Apr 2014 22:20:16 +0100
On 04/23/2014 08:20 PM, Edgars Irmejs wrote:
> ---
>  ChangeLog |    4 ++++
>  gl/lib/fadvise.h  |    4 ++--
>  2 files changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/ChangeLog b/ChangeLog
> index e69de29..cf30f09 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -0,0 +1,4 @@
> +2014-04-23  Edgars Irmejs <edgars.irmejs <at> gmail.com>
> +
> +* gl/lib/fadvise.h (fadvice_t): Remove trailing comma from enum.
> +
> diff --git a/gl/lib/fadvise.h b/gl/lib/fadvise.h
> index ce4bd76..11ecd8f 100644
> --- a/gl/lib/fadvise.h
> +++ b/gl/lib/fadvise.h
> @@ -48,7 +48,7 @@ typedef enum {
>    FADVISE_NOREUSE =    POSIX_FADV_NOREUSE,
>    FADVISE_DONTNEED =   POSIX_FADV_DONTNEED,
>    FADVISE_WILLNEED =   POSIX_FADV_WILLNEED,
> -  FADVISE_RANDOM =     POSIX_FADV_RANDOM,
> +  FADVISE_RANDOM =     POSIX_FADV_RANDOM
>  } fadvice_t;
>  #else
>  typedef enum {
> @@ -57,7 +57,7 @@ typedef enum {
>    FADVISE_NOREUSE,
>    FADVISE_DONTNEED,
>    FADVISE_WILLNEED,
> -  FADVISE_RANDOM,
> +  FADVISE_RANDOM
>  } fadvice_t;
>  #endif
> 
> --
> 1.7.9
> 

I'll include this thanks.
It would be good to know if there was a specific
issue with this with an old compiler, or if it's
just a style change?

thanks,
Pádraig.




Information forwarded to bug-coreutils <at> gnu.org:
bug#17329; Package coreutils. (Wed, 23 Apr 2014 21:51:02 GMT) Full text and rfc822 format available.

Message #11 received at 17329 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Pádraig Brady <P <at> draigBrady.com>,
 Edgars Irmejs <edgars.irmejs <at> gmail.com>
Cc: 17329 <at> debbugs.gnu.org
Subject: Re: bug#17329: [PATCH] * gl/lib/fadvise.h (fadvice_t): Remove trailing
 comma from enum.
Date: Wed, 23 Apr 2014 15:49:58 -0600
[Message part 1 (text/plain, inline)]
On 04/23/2014 03:20 PM, Pádraig Brady wrote:

>> +++ b/gl/lib/fadvise.h
>> @@ -48,7 +48,7 @@ typedef enum {
>>    FADVISE_NOREUSE =    POSIX_FADV_NOREUSE,
>>    FADVISE_DONTNEED =   POSIX_FADV_DONTNEED,
>>    FADVISE_WILLNEED =   POSIX_FADV_WILLNEED,
>> -  FADVISE_RANDOM =     POSIX_FADV_RANDOM,
>> +  FADVISE_RANDOM =     POSIX_FADV_RANDOM
>>  } fadvice_t;
>>  #else
>>  typedef enum {
>> @@ -57,7 +57,7 @@ typedef enum {
>>    FADVISE_NOREUSE,
>>    FADVISE_DONTNEED,
>>    FADVISE_WILLNEED,
>> -  FADVISE_RANDOM,
>> +  FADVISE_RANDOM
>>  } fadvice_t;
>>  #endif
>>
>> --
>> 1.7.9
>>
> 
> I'll include this thanks.
> It would be good to know if there was a specific
> issue with this with an old compiler, or if it's
> just a style change?

Coreutils requires a C99 compiler, which means trailing comma support is
required.

If this were directly in gnulib, though, where we still cater to C89
compilers, this patch makes total sense.  And given the location of this
file in the coreutils repo, it looks like we intend for fadvise.h to
eventually migrate to gnulib if it proves useful elsewhere.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

Reply sent to Pádraig Brady <P <at> draigBrady.com>:
You have taken responsibility. (Fri, 25 Apr 2014 00:33:02 GMT) Full text and rfc822 format available.

Notification sent to Edgars Irmejs <edgars.irmejs <at> gmail.com>:
bug acknowledged by developer. (Fri, 25 Apr 2014 00:33:03 GMT) Full text and rfc822 format available.

Message #16 received at 17329-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Edgars Irmejs <edgars.irmejs <at> gmail.com>
Cc: 17329-done <at> debbugs.gnu.org
Subject: Re: bug#17329: [PATCH] * gl/lib/fadvise.h (fadvice_t): Remove trailing
 comma from enum.
Date: Fri, 25 Apr 2014 01:32:42 +0100
I pushed that so marking bug as done.

thanks!
Pádraig.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 23 May 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 27 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.