Re: Another problem with gcc4
Jaakko Niemi <[email protected]> Wed, 27 Jul 2005 03:39:52 +0300
| Newsgroups | gmane.comp.file-systems.sfs.general |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 25 Jul 2005, Jaakko Niemi wrote:
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/include
> -DSLEEPYCAT -I.. -I../async -I../arpc -I../crypt -I../sfsmisc
> -I../sfsrodb -I../adb -I../svc -I../svc
> -DEXECDIR=\"/usr/local/lib/sfs-0.8pre\" -DETCDIR=\"/etc/sfs\"
> -DDATADIR=\"/usr/local/share/sfs\" -DPIDDIR=\"/var/run\"
> -DSFSDIR=\"/var/sfs\" -g -O2 -Wall -Werror -MT aio.lo -MD -MP -MF
> .deps/aio.Tpo -c aio.C -o aio.o
> aiod.h:41: error: ISO C++ forbids declaration of 'aiod' with no type
Patch below works around this. Again, not sure if this is the right
way. Comments welcome.
--j
--- sfs1-june/async/aiod.h 2004-05-23 01:25:37.000000000 +0300
+++ sfs1/async/aiod.h 2005-07-27 01:13:24.000000000 +0300
@@ -32,6 +32,9 @@
struct aiod_req;
+class aiod;
+class aiofh;
+
class aiobuf {
friend class aiod;
friend class aiofh;