From:
[email protected]
Package: nqc
Severity: normal
Tags: patch
When building 'nqc' with gcc-3.4 I get the following error:
In file included from nqc/nqc.cpp:27:
rcxlib/RCX_Image.h:107: error: class RCX_Image::Chunk redeclared with different access
In file included from nqc/nqc.cpp:39:
compiler/Error.h: In constructor `Error::Error(ErrorCode, const char*)': compiler/Error.h:95: warning: cast from pointer to integer of different size nqc/nqc.cpp: At global scope:
nqc/nqc.cpp:1224: warning: 'void PrintToken(int, TokenVal)' defined but not used
make[1]: *** [nqc/nqc.o] Error 1
make[1]: Leaving directory `/nqc-2.5.r3'
With the attached patch 'nqc' can be compiled using gcc-3.4.
Regards
Andreas Jochens
diff -urN ../tmp-orig/nqc-2.5.r3/rcxlib/RCX_Image.h ./rcxlib/RCX_Image.h
--- ../tmp-orig/nqc-2.5.r3/rcxlib/RCX_Image.h 2003-11-09 05:14:23.000000000 +0100
+++ ./rcxlib/RCX_Image.h 2004-08-13 17:10:41.942734001 +0200
@@ -78,7 +78,6 @@
void Clear();
int GetSize() const;
-private:
class Chunk
{
public:
@@ -88,7 +87,6 @@
UByte GetNumber() const { return fNumber; }
RCX_ChunkType GetType() const { return fType; }
- private:
Chunk();
~Chunk();
@@ -103,7 +101,6 @@
RCX_SourceTag* fTags;
int fTagCount;
- friend class RCX_Image;
};
struct Variable
--
To UNSUBSCRIBE, email to
[email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)