Compiler warning with cuda.h

Following the suggestion of Herb Sutter’s “C++ Coding Standards”, I always to compile my projects with the highest warning level. With GCC, this happens to be “-Wall -Werror -ansi -pedantic”. When I include “cuda.h” in a C++ program compiled with g++ with the above options, it gives me the following warning/error:

/opt/cuda/include/cuda.h:101: error: comma at end of enumerator list

This warning is complaining about the following enumeration definition in cuda.h:

typedef enum CUaddress_mode_enum {
CU_TR_ADDRESS_MODE_WRAP = 0,
CU_TR_ADDRESS_MODE_CLAMP = 1,
CU_TR_ADDRESS_MODE_MIRROR = 2,
} CUaddress_mode;

When the comma after the last enumerator definition is removed, the warning/error goes away. This seems to be a relatively benign change, can this be corrected before the CUDA 2.0 release? Note that this same problem exists in both the CUDA 1.1 and 2.0b2 releases.

When I give g++ those option I won’t get any error nor warning

I’m using CUDA 1.1 on Fedora Core 6

I should have noted in the original post that I’m using Ubuntu 7.04, which uses GCC 4.1.2.