Skip to content

Commit

Permalink
Fixes for gcc 4.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
davenger committed Apr 4, 2011
1 parent 05acfee commit 5d7d5ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pire/encoding.cpp
Expand Up @@ -36,6 +36,8 @@ namespace {

class Latin1: public Encoding {
public:
Latin1() : Encoding() {}

wchar32 FromLocal(const char*& begin, const char* end) const
{
if (begin == end)
Expand Down Expand Up @@ -74,6 +76,8 @@ static const Latin1 latin1;

class Utf8: public Encoding {
public:
Utf8() : Encoding() {}

wchar32 FromLocal(const char*& begin, const char* end) const
{
wchar32 rune;
Expand Down
2 changes: 1 addition & 1 deletion pire/extra/count.cpp
Expand Up @@ -90,7 +90,7 @@ CountingScanner::CountingScanner(const Fsm& re, const Fsm& sep)
YASSERT(!"Wrong transition size for backup");

NewState ns(*mr.begin(), *br.begin());
NewState savedNs = ns;
PIRE_IFDEBUG(NewState savedNs = ns);
unsigned long outputs = 0;

PIRE_IFDEBUG(ystring dbgout);
Expand Down
1 change: 1 addition & 0 deletions pire/stub/defaults.h
Expand Up @@ -19,6 +19,7 @@
#define PIRE_STUB_DEFAULTS_H_INCLUDED

#include <stdint.h>
#include <stddef.h>

namespace Pire {
typedef int8_t i8;
Expand Down

0 comments on commit 5d7d5ae

Please sign in to comment.