]>
Commit | Line | Data |
---|---|---|
621d1874 | 1 | On Tue, Jun 22, 2004 at 10:41:07PM -0400, Guest user via RT wrote: |
2 | > And now, with gcc-3.3.4, and kernel 2.6.7: | |
3 | > | |
4 | > i686-pld-linux-g++ -fno-exceptions -fcheck-new -Wall -MD -DHAVE_CONFIG_H | |
5 | > -I. -I/home/users/aredridel/rpm/BUILD/coda-6.0.6/include | |
6 | > -I/home/users/aredridel/rpm/BUILD/coda-6.0.6 -O2 -march=i686 -ggdb | |
7 | > -DVENUS -DTIMING -DVENUSDEBUG -DRVM_USELWP -c -o adv_monitor.o | |
8 | > adv_monitor.cc | |
9 | > In file included from adv_monitor.h:24, | |
10 | > from adv_monitor.cc:19: | |
11 | > fso.h:542: error: using typedef-name `HoardFetchState' after `enum' | |
12 | > fso.h:543: error: ISO C++ forbids declaration of `new_state' with no type | |
13 | > fso.h:550: error: using typedef-name `HoardAskState' after `enum' | |
14 | > fso.h:551: error: ISO C++ forbids declaration of `new_state' with no type | |
15 | ||
16 | Ok, gcc just got more paranoid. The patch is really quite simple, | |
17 | ||
18 | Index: fso.h | |
19 | =================================================================== | |
20 | RCS file: /afs/cs/project/coda-src/cvs/coda/coda-src/venus/fso.h,v | |
21 | retrieving revision 4.64 | |
22 | diff -u -u -r4.64 fso.h | |
23 | --- fso.h 5 Mar 2004 21:15:53 -0000 4.64 | |
24 | +++ fso.h 25 Jun 2004 22:13:34 -0000 | |
25 | @@ -539,7 +539,7 @@ | |
26 | void DetachHdbBindings(); | |
27 | void DetachHdbBinding(binding *, int =0); | |
28 | int PredetermineFetchState(int, int); | |
29 | - void SetFetchAllowed(enum HoardFetchState new_state) | |
30 | + void SetFetchAllowed(HoardFetchState new_state) | |
31 | { FetchAllowed = new_state; } | |
32 | int IsFetchAllowed() | |
33 | { if (FetchAllowed == HF_Fetch) | |
34 | @@ -547,7 +547,7 @@ | |
35 | else | |
36 | return 0; | |
37 | } | |
38 | - void SetAskingAllowed(enum HoardAskState new_state) | |
39 | + void SetAskingAllowed(HoardAskState new_state) | |
40 | { AskingAllowed = new_state; } | |
41 | int IsAskingAllowed() | |
42 | { if (AskingAllowed == HA_Ask) |