Commit 9c1780a8 authored by Christoffer Ackelman's avatar Christoffer Ackelman

Fixed compile warning about dynamic throw specification.

parent b23e49bb
......@@ -200,7 +200,7 @@ mkdir := mkdir
# Set to /buildversion for frozen dbs versions
wblflags :=
warnings := -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-sign-compare -Wno-missing-field-initializers
warnings := -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-sign-compare -Wno-missing-field-initializers -Wno-cast-function-type -Wno-implicit-fallthrough
ifeq ($(pwre_btype),rls)
cflags := $(cross_compile) -c -O3 -D_GNU_SOURCE -DPWR_NDEBUG -D_REENTRANT -fPIC $(warnings)
......
......@@ -200,7 +200,7 @@ mkdir := mkdir
# Set to /buildversion for frozen dbs versions
wblflags :=
warnings := -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-sign-compare -Wno-missing-field-initializers -Wno-deprecated -Wno-cast-function-type -Wno-deprecated
warnings := -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-sign-compare -Wno-missing-field-initializers -Wno-cast-function-type -Wno-implicit-fallthrough
ifeq ($(pwre_btype),rls)
cflags := $(cross_compile) -c -O3 -D_GNU_SOURCE -DPWR_NDEBUG -D_REENTRANT -fPIC $(warnings)
......
......@@ -106,37 +106,37 @@ std::ostream& operator<<(std::ostream& os, const wb_name& name)
return os;
}
bool wb_name::hasVolume() const throw(wb_error)
bool wb_name::hasVolume() const
{
check();
return m_nrep->hasVolume();
}
bool wb_name::hasPath() const throw(wb_error)
bool wb_name::hasPath() const
{
check();
return m_nrep->hasPath();
}
bool wb_name::hasObject() const throw(wb_error)
bool wb_name::hasObject() const
{
check();
return m_nrep->hasObject();
}
bool wb_name::hasSegment(int idx) const throw(wb_error)
bool wb_name::hasSegment(int idx) const
{
check();
return m_nrep->hasSegment(idx);
}
bool wb_name::hasAttribute(int idx) const throw(wb_error)
bool wb_name::hasAttribute(int idx) const
{
check();
return m_nrep->hasAttribute(idx);
}
bool wb_name::hasAttrIndex(int idx) const throw(wb_error)
bool wb_name::hasAttrIndex(int idx) const
{
check();
return m_nrep->hasAttrIndex(idx);
......@@ -154,176 +154,176 @@ int wb_name::segments()
return m_nrep->segments();
}
int wb_name::attrIndex(int idx) const throw(wb_error)
int wb_name::attrIndex(int idx) const
{
check();
return m_nrep->attrIndex(idx);
}
char* wb_name::segment(int idx, char* res) const throw(wb_error)
char* wb_name::segment(int idx, char* res) const
{
check();
return m_nrep->segment(idx, res);
}
char* wb_name::path(char* res) const throw(wb_error)
char* wb_name::path(char* res) const
{
check();
return m_nrep->path(res);
}
char* wb_name::volume(char* res) const throw(wb_error)
char* wb_name::volume(char* res) const
{
check();
return m_nrep->volume(res);
}
char* wb_name::object(char* res) const throw(wb_error)
char* wb_name::object(char* res) const
{
check();
return m_nrep->object(res);
}
char* wb_name::attribute(int idx, char* res) const throw(wb_error)
char* wb_name::attribute(int idx, char* res) const
{
check();
return m_nrep->attribute(idx, res);
}
char* wb_name::normSegment(int idx, char* res) const throw(wb_error)
char* wb_name::normSegment(int idx, char* res) const
{
check();
return m_nrep->normSegment(idx, res);
}
char* wb_name::normPath(char* res) const throw(wb_error)
char* wb_name::normPath(char* res) const
{
check();
return m_nrep->normPath(res);
}
char* wb_name::normVolume(char* res) const throw(wb_error)
char* wb_name::normVolume(char* res) const
{
check();
return m_nrep->normVolume(res);
}
char* wb_name::normObject(char* res) const throw(wb_error)
char* wb_name::normObject(char* res) const
{
check();
return m_nrep->normObject(res);
}
char* wb_name::normAttribute(int idx, char* res) const throw(wb_error)
char* wb_name::normAttribute(int idx, char* res) const
{
check();
return m_nrep->normAttribute(idx, res);
}
char* wb_name::name() const throw(wb_error)
char* wb_name::name() const
{
check();
return m_nrep->name();
}
char* wb_name::normName() const throw(wb_error)
char* wb_name::normName() const
{
check();
return m_nrep->normName();
}
char* wb_name::name(int ntype) const throw(wb_error)
char* wb_name::name(int ntype) const
{
check();
return m_nrep->name(ntype);
}
char* wb_name::normName(int ntype) const throw(wb_error)
char* wb_name::normName(int ntype) const
{
check();
return m_nrep->normName(ntype);
}
bool wb_name::volumeIsEqual(const char* n) const throw(wb_error)
bool wb_name::volumeIsEqual(const char* n) const
{
check();
return m_nrep->volumeIsEqual(n);
}
bool wb_name::objectIsEqual(const char* n) const throw(wb_error)
bool wb_name::objectIsEqual(const char* n) const
{
check();
return m_nrep->objectIsEqual(n);
}
bool wb_name::segmentIsEqual(const char* n, int idx) const throw(wb_error)
bool wb_name::segmentIsEqual(const char* n, int idx) const
{
check();
return m_nrep->segmentIsEqual(n, idx);
}
bool wb_name::attributeIsEqual(const char* n, int idx) const throw(wb_error)
bool wb_name::attributeIsEqual(const char* n, int idx) const
{
check();
return m_nrep->attributeIsEqual(n, idx);
}
char* wb_name::segmentsAll(int idx) const throw(wb_error)
char* wb_name::segmentsAll(int idx) const
{
check();
return m_nrep->segmentsAll(idx);
}
char* wb_name::attributesAll(int idx) const throw(wb_error)
char* wb_name::attributesAll(int idx) const
{
check();
return m_nrep->attributesAll(idx);
}
char* wb_name::attributesAllTrue(int idx) const throw(wb_error)
char* wb_name::attributesAllTrue(int idx) const
{
check();
return m_nrep->attributesAll(idx, 0, true);
}
// Id representation
char* wb_name::vid(char* res) const throw(wb_error)
char* wb_name::vid(char* res) const
{
check();
return m_nrep->volume(res);
}
char* wb_name::oix(char* res) const throw(wb_error)
char* wb_name::oix(char* res) const
{
check();
return m_nrep->segment(1, res);
}
char* wb_name::bodyName(char* res) const throw(wb_error)
char* wb_name::bodyName(char* res) const
{
check();
return m_nrep->segment(2, res);
}
int wb_name::bodyOffset() const throw(wb_error)
int wb_name::bodyOffset() const
{
check();
return m_nrep->bodyOffset();
}
int wb_name::bodySize() const throw(wb_error)
int wb_name::bodySize() const
{
check();
return m_nrep->bodySize();
}
bool wb_name::hasSuper() const throw(wb_error)
bool wb_name::hasSuper() const
{
check();
return m_nrep->hasSuper();
}
void wb_name::setShadowed(bool shadowed) throw(wb_error)
void wb_name::setShadowed(bool shadowed)
{
check();
m_nrep->setShadowed(shadowed);
......
......@@ -158,45 +158,45 @@ public:
bool operator==(wb_name&);
// Name representation
bool hasVolume() const throw(wb_error);
bool hasPath() const throw(wb_error);
bool hasObject() const throw(wb_error);
bool hasSegment(int idx = 0) const throw(wb_error);
bool hasAttribute(int idx = 0) const throw(wb_error);
bool hasAttrIndex(int idx = 0) const throw(wb_error);
bool hasVolume() const;
bool hasPath() const;
bool hasObject() const;
bool hasSegment(int idx = 0) const;
bool hasAttribute(int idx = 0) const;
bool hasAttrIndex(int idx = 0) const;
int attributes();
int segments();
int attrIndex(int idx = 0) const throw(wb_error);
char* segment(int idx = 0, char* res = 0) const throw(wb_error);
char* path(char* res = 0) const throw(wb_error);
char* volume(char* res = 0) const throw(wb_error);
char* object(char* res = 0) const throw(wb_error);
char* attribute(int idx = 0, char* res = 0) const throw(wb_error);
char* normSegment(int idx = 0, char* res = 0) const throw(wb_error);
char* normPath(char* res = 0) const throw(wb_error);
char* normVolume(char* res = 0) const throw(wb_error);
char* normObject(char* res = 0) const throw(wb_error);
char* normAttribute(int idx = 0, char* res = 0) const throw(wb_error);
char* name() const throw(wb_error);
char* normName() const throw(wb_error);
char* name(int ntype) const throw(wb_error);
char* normName(int ntype) const throw(wb_error);
bool volumeIsEqual(const char* n) const throw(wb_error);
bool objectIsEqual(const char* n) const throw(wb_error);
bool segmentIsEqual(const char* n, int idx = 0) const throw(wb_error);
bool attributeIsEqual(const char* n, int idx = 0) const throw(wb_error);
char* segmentsAll(int idx = 0) const throw(wb_error);
char* attributesAll(int idx = 0) const throw(wb_error);
char* attributesAllTrue(int idx = 0) const throw(wb_error);
int attrIndex(int idx = 0) const;
char* segment(int idx = 0, char* res = 0) const;
char* path(char* res = 0) const;
char* volume(char* res = 0) const;
char* object(char* res = 0) const;
char* attribute(int idx = 0, char* res = 0) const;
char* normSegment(int idx = 0, char* res = 0) const;
char* normPath(char* res = 0) const;
char* normVolume(char* res = 0) const;
char* normObject(char* res = 0) const;
char* normAttribute(int idx = 0, char* res = 0) const;
char* name() const;
char* normName() const;
char* name(int ntype) const;
char* normName(int ntype) const;
bool volumeIsEqual(const char* n) const;
bool objectIsEqual(const char* n) const;
bool segmentIsEqual(const char* n, int idx = 0) const;
bool attributeIsEqual(const char* n, int idx = 0) const;
char* segmentsAll(int idx = 0) const;
char* attributesAll(int idx = 0) const;
char* attributesAllTrue(int idx = 0) const;
// Id representation
char* vid(char* res = 0) const throw(wb_error);
char* oix(char* res = 0) const throw(wb_error);
char* bodyName(char* res = 0) const throw(wb_error);
int bodyOffset() const throw(wb_error);
int bodySize() const throw(wb_error);
bool hasSuper() const throw(wb_error);
void setShadowed(bool shadowed) throw(wb_error);
char* vid(char* res = 0) const;
char* oix(char* res = 0) const;
char* bodyName(char* res = 0) const;
int bodyOffset() const;
int bodySize() const;
bool hasSuper() const;
void setShadowed(bool shadowed);
// bool bodyId();
// bool bodyName();
......
......@@ -84,14 +84,13 @@ char wb_nrep::unatname_tab[] = "================================"
#define nameDiff(s1, s2) ((long)(s1) - (long)(s2))
wb_nrep::wb_nrep()
: m_nRef(0), num_seg(0), num_attr(0), vol_len(0), seg(0), attr(0),
m_hasSuper(false), m_shadowed(false)
wb_nrep::wb_nrep() : m_nRef(0), num_seg(0), num_attr(0), vol_len(0), seg(0),
attr(0), m_hasSuper(false), m_shadowed(false)
{
strcpy(oname, "");
}
wb_nrep::wb_nrep(const char* n) throw(wb_error)
wb_nrep::wb_nrep(const char* n)
: m_nRef(0), num_seg(0), num_attr(0), vol_len(0), vol_offs(0), b_size(0),
b_offset(0), seg(0), attr(0), m_hasSuper(false), m_shadowed(false)
{
......@@ -184,7 +183,7 @@ wb_nrep* wb_nrep::ref()
return this;
}
void wb_nrep::parse() throw(wb_error)
void wb_nrep::parse()
{
int state = 0;
char *s, *snn;
......
......@@ -88,7 +88,7 @@ private:
bool m_hasSuper;
bool m_shadowed;
void parse() throw(wb_error);
void parse();
char* objectName(const char* n, char* res = 0);
char* segmentName(const char* n, int idx = 0, char* res = 0);
char* attributeName(const char* n, int idx = 0, char* res = 0);
......@@ -101,7 +101,7 @@ public:
wb_nrep* ref();
wb_nrep();
wb_nrep(const char* n) throw(wb_error);
wb_nrep(const char* n);
wb_nrep(const wb_nrep& n);
~wb_nrep();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment