Opened 16 years ago
Closed 16 years ago
#3496 closed bug (fixed)
r29341 build broken on /haiku/trunk/src/system/kernel/fs/vfs.cpp because of multiple parameters of attr_write_stat() with the same name
Reported by: | iFrodo | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | System/Kernel | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
This ticket will not last very long as the fix is pretty obvious, but I file it anyway;
On line 483 of /haiku/trunk/src/system/kernel/fs/vfs.cpp, attr_write_stat() is defined as follow on hrev29341:
static status_t attr_write_stat(struct file_descriptor* descriptor, const struct stat* descriptor, int statMask);
As you can see, the two first parameters are named "descriptor".
The fix is then obvious, just name one of them differently, example:
static status_t attr_write_stat(struct file_descriptor* descriptor, const struct stat* descriptor2, int statMask);
Note:
See TracTickets
for help on using tickets.
I suppose that was a gcc4 issue only, since it compiled fine here with gcc2. Anyway, fixed in hrev29342.