diff --git a/client/Makefile.in b/client/Makefile.in index cedb5d7..70b64d7 100644 --- a/client/Makefile.in +++ b/client/Makefile.in @@ -338,7 +338,7 @@ $(BINDBG)/$(MODULE_NAME)-client@EXEEXT@: \ $^ \ -L$(BINDBG) \ -Wl,-rpath,$(BINDBG) \ - @CLIENT_LDFLAGS@ \ + @LDFLAGS@ \ $(LDFLAGS) \ $(LIBS) diff --git a/client/src/core/attribute.cc b/client/src/core/attribute.cc index ed9c5cb..396dd82 100644 --- a/client/src/core/attribute.cc +++ b/client/src/core/attribute.cc @@ -94,17 +94,17 @@ debug("worker=",((void *) this->data)," length=",szWorker); - get.name = [](const void *worker) { + get.name = [](const void GNUC_UNUSED(*worker)) { return "unnamed"; }; - get.asString = [](const Attribute &attr, const void *worker) { + get.asString = [](const Attribute GNUC_UNUSED(&attr), const void GNUC_UNUSED(*worker)) { throw std::system_error(ENOTSUP, std::system_category()); return ""; }; - get.asInt32 = [](const Attribute &attr, const void *worker) { + get.asInt32 = [](const Attribute GNUC_UNUSED(&attr), const void GNUC_UNUSED(*worker)) { throw std::system_error(ENOTSUP, std::system_category()); return (int32_t) 0; }; @@ -117,11 +117,11 @@ return (bool) attr.get.asInt32(attr, worker) != 0; }; - set.asString = [](const Attribute & attr, const void *worker, const char *value) { + set.asString = [](const Attribute GNUC_UNUSED(& attr), const void GNUC_UNUSED(*worker), const char GNUC_UNUSED(*value)) { throw std::system_error(ENOTSUP, std::system_category()); }; - set.asInt32 = [](const Attribute & attr, const void *worker, const int32_t value) { + set.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void GNUC_UNUSED(*worker), const int32_t GNUC_UNUSED(value)) { throw std::system_error(ENOTSUP, std::system_category()); }; diff --git a/client/src/core/linux/attribute.cc b/client/src/core/linux/attribute.cc index f141386..83e020a 100644 --- a/client/src/core/linux/attribute.cc +++ b/client/src/core/linux/attribute.cc @@ -58,7 +58,7 @@ attributes.push_back((const LIB3270_PROPERTY *) prop); } - for(auto prop = lib3270_get_toggle_list(); prop->name; prop++) { + for(auto prop = lib3270_get_toggles(); prop->name; prop++) { attributes.push_back((const LIB3270_PROPERTY *) prop); } diff --git a/client/src/core/session.cc b/client/src/core/session.cc index e2a7c19..7cf2370 100644 --- a/client/src/core/session.cc +++ b/client/src/core/session.cc @@ -70,7 +70,7 @@ } /// @brief Fire event. - void Session::fire(const Event &event) { + void Session::fire(const Event GNUC_UNUSED(&event)) { } void Session::push(const PFKey key) { @@ -415,24 +415,14 @@ } - void Session::setAttribute(const char *name, const int value) { + void Session::setAttribute(const char GNUC_UNUSED(*name), const int GNUC_UNUSED(value)) { throw std::system_error(ENOTSUP, std::system_category()); } - void Session::setAttribute(const char *name, const char *value) { + void Session::setAttribute(const char GNUC_UNUSED(*name), const char GNUC_UNUSED(*value)) { throw std::system_error(ENOTSUP, std::system_category()); } - /* - Attribute Session::getAttribute(const char *name) const { - throw std::system_error(ENOTSUP, std::system_category()); - } - - void Session::getAttributes(std::vector & attributes) const { - throw std::system_error(ENOTSUP, std::system_category()); - } - */ - std::vector Session::getAttributes() const { std::vector attributes; this->getAttributes(attributes); @@ -456,7 +446,7 @@ } /// @brief Create an action object - Action * Session::getAction(const LIB3270_ACTION *descriptor) { + Action * Session::getAction(const LIB3270_ACTION GNUC_UNUSED(*descriptor)) { throw std::system_error(ENOTSUP, std::system_category()); } diff --git a/client/src/include/ipc-client-internals.h b/client/src/include/ipc-client-internals.h index 17feb1d..8b2eaa2 100644 --- a/client/src/include/ipc-client-internals.h +++ b/client/src/include/ipc-client-internals.h @@ -68,6 +68,18 @@ #define N_( x ) x #endif // HAVE_LIBINTL +// +// Compiler-specific #defines. +// +// Reference: GLIBC gmacros.h +// +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) + #define GNUC_UNUSED \ + __attribute__((__unused__)) +#else + #define unused +#endif + #ifdef HAVE_ICONV #include #endif // HAVE_ICONV diff --git a/client/src/session/get.cc b/client/src/session/get.cc index 1fcad63..f5f42c8 100644 --- a/client/src/session/get.cc +++ b/client/src/session/get.cc @@ -51,12 +51,12 @@ } /// @brief Get contents of field ad address. - void Abstract::Session::pop(int baddr, std::string &text) { + void Abstract::Session::pop(int GNUC_UNUSED(baddr), std::string GNUC_UNUSED(&text)) { throw std::system_error(ENOTSUP, std::system_category()); } /// @brief Get contents of field at position. - void Abstract::Session::pop(unsigned short row, unsigned short col, std::string &text) { + void Abstract::Session::pop(unsigned short GNUC_UNUSED(row), unsigned short GNUC_UNUSED(col), std::string GNUC_UNUSED(&text)) { throw std::system_error(ENOTSUP, std::system_category()); } diff --git a/client/src/session/local/attribute.cc b/client/src/session/local/attribute.cc index 3a62272..94fb72a 100644 --- a/client/src/session/local/attribute.cc +++ b/client/src/session/local/attribute.cc @@ -87,11 +87,11 @@ public: IntAttribute(H3270 *hSession, const LIB3270_INT_PROPERTY *worker) : TemplateAttribute(hSession, Attribute::Int32, worker) { - get.asString = [](const Attribute & attr, const void *worker) { + get.asString = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return std::to_string(attr.getInt32()); }; - get.asInt32 = [](const Attribute & attr, const void *worker) { + get.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker) { const struct Worker * w = (const struct Worker *) worker; @@ -106,24 +106,24 @@ }; - get.asUint32 = [](const Attribute & attr, const void *worker) { + get.asUint32 = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (uint32_t) attr.getInt32(); }; - get.asBoolean = [](const Attribute & attr, const void *worker) { + get.asBoolean = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (attr.getInt32() != 0); }; if(worker->set) { - set.asInt32 = [](const Attribute & attr, const void *worker, const int32_t value) { + set.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const int32_t value) { const struct Worker * w = (const struct Worker *) worker; w->methods->set(w->hSession,(int) value); }; - set.asUint32 = [](const Attribute & attr, const void *worker, const uint32_t value) { + set.asUint32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const uint32_t value) { const struct Worker * w = (const struct Worker *) worker; w->methods->set(w->hSession,(int) value); @@ -141,11 +141,11 @@ public: BooleanAttribute(H3270 *hSession, const LIB3270_INT_PROPERTY *worker) : TemplateAttribute(hSession, Attribute::Boolean, worker) { - get.asString = [](const Attribute & attr, const void *worker) { + get.asString = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return attr.getInt32() ? "true" : "false"; }; - get.asInt32 = [](const Attribute & attr, const void *worker) { + get.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker) { const struct Worker * w = (const struct Worker *) worker; @@ -160,24 +160,24 @@ }; - get.asUint32 = [](const Attribute & attr, const void *worker) { + get.asUint32 = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (uint32_t) attr.getInt32(); }; - get.asBoolean = [](const Attribute & attr, const void *worker) { + get.asBoolean = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (attr.getInt32() != 0); }; if(worker->set) { - set.asInt32 = [](const Attribute & attr, const void *worker, const int32_t value) { + set.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const int32_t value) { const struct Worker * w = (const struct Worker *) worker; w->methods->set(w->hSession,(int) value); }; - set.asUint32 = [](const Attribute & attr, const void *worker, const uint32_t value) { + set.asUint32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const uint32_t value) { const struct Worker * w = (const struct Worker *) worker; w->methods->set(w->hSession,(int) value); @@ -195,15 +195,15 @@ public: UnsignedIntAttribute(H3270 *hSession, const LIB3270_UINT_PROPERTY *worker) : TemplateAttribute(hSession, Attribute::Boolean, worker) { - get.asString = [](const Attribute & attr, const void *worker) { + get.asString = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return std::to_string(attr.getUint32()); }; - get.asInt32 = [](const Attribute & attr, const void *worker) { + get.asInt32 = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (int32_t) attr.getUint32(); }; - get.asUint32 = [](const Attribute & attr, const void *worker) { + get.asUint32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker) { const struct Worker * w = (const struct Worker *) worker; @@ -218,20 +218,20 @@ }; - get.asBoolean = [](const Attribute & attr, const void *worker) { + get.asBoolean = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (attr.getUint32() != 0); }; if(worker->set) { - set.asInt32 = [](const Attribute & attr, const void *worker, const int32_t value) { + set.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const int32_t value) { const struct Worker * w = (const struct Worker *) worker; w->methods->set(w->hSession,(unsigned int) value); }; - set.asUint32 = [](const Attribute & attr, const void *worker, const uint32_t value) { + set.asUint32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const uint32_t value) { const struct Worker * w = (const struct Worker *) worker; w->methods->set(w->hSession,(unsigned int) value); @@ -248,7 +248,7 @@ public: StringAttribute(H3270 *hSession, const LIB3270_STRING_PROPERTY *worker) : TemplateAttribute(hSession, Attribute::String, worker) { - get.asString = [](const Attribute & attr, const void *worker) { + get.asString = [](const Attribute GNUC_UNUSED(& attr), const void *worker) { errno = 0; @@ -264,7 +264,7 @@ }; - get.asInt32 = [](const Attribute & attr, const void *worker) { + get.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker) { const struct Worker * w = (const struct Worker *) worker; const char * str = w->methods->get(w->hSession); @@ -278,21 +278,21 @@ if(worker->set) { - set.asString = [](const Attribute & attr, const void *worker, const char *value) { + set.asString = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const char *value) { const struct Worker * w = (const struct Worker *) worker; w->methods->set(w->hSession,value); }; - set.asInt32 = [](const Attribute & attr, const void *worker, const int32_t value) { + set.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const int32_t value) { const struct Worker * w = (const struct Worker *) worker; w->methods->set(w->hSession,std::to_string(value).c_str()); }; - set.asUint32 = [](const Attribute & attr, const void *worker, const uint32_t value) { + set.asUint32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const uint32_t value) { const struct Worker * w = (const struct Worker *) worker; w->methods->set(w->hSession,std::to_string(value).c_str()); @@ -306,15 +306,15 @@ }; // Toggle attribute - class TN3270_PRIVATE ToggleAttribute : public TemplateAttribute { + class TN3270_PRIVATE ToggleAttribute : public TemplateAttribute { public: - ToggleAttribute(H3270 *hSession, const LIB3270_TOGGLE_ENTRY *worker) : TemplateAttribute(hSession, Attribute::Boolean, worker) { + ToggleAttribute(H3270 *hSession, const LIB3270_TOGGLE *worker) : TemplateAttribute(hSession, Attribute::Boolean, worker) { - get.asString = [](const Attribute & attr, const void *worker) { + get.asString = [](const Attribute GNUC_UNUSED(& attr), const void GNUC_UNUSED(*worker)) { return attr.getBoolean() ? "true" : "false"; }; - get.asInt32 = [](const Attribute & attr, const void *worker) { + get.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker) { const struct Worker * w = (const struct Worker *) worker; @@ -330,12 +330,12 @@ }; - set.asInt32 = [](const Attribute & attr, const void *worker, const int32_t value) { + set.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const int32_t value) { const struct Worker * w = (const struct Worker *) worker; lib3270_set_toggle(w->hSession,w->methods->id, (int) value); }; - set.asBoolean = [](const Attribute & attr, const void *worker, const bool value) { + set.asBoolean = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const bool value) { const struct Worker * w = (const struct Worker *) worker; lib3270_set_toggle(w->hSession,w->methods->id, (int) value); }; @@ -388,7 +388,7 @@ // Check for boolean properties { - const LIB3270_TOGGLE_ENTRY *toggles = lib3270_get_toggle_list(); + const LIB3270_TOGGLE *toggles = lib3270_get_toggles(); for(size_t ix = 0; toggles[ix].name; ix++) { if(!strcasecmp(name,toggles[ix].name)) { @@ -446,7 +446,7 @@ // Add boolean properties { - const LIB3270_TOGGLE_ENTRY *toggles = lib3270_get_toggle_list(); + const LIB3270_TOGGLE *toggles = lib3270_get_toggles(); for(size_t ix = 0; toggles[ix].name; ix++) { attributes.push_back(ToggleAttribute(hSession,&toggles[ix])); } diff --git a/client/src/session/remote/actions.cc b/client/src/session/remote/actions.cc index efe6fe4..30eef3c 100644 --- a/client/src/session/remote/actions.cc +++ b/client/src/session/remote/actions.cc @@ -147,7 +147,7 @@ this->action(toCharString(action)); } - void IPC::Session::print(LIB3270_CONTENT_OPTION option) { + void IPC::Session::print(LIB3270_CONTENT_OPTION GNUC_UNUSED(option)) { throw std::system_error(ENOTSUP, std::system_category()); } diff --git a/client/src/session/remote/attribute.cc b/client/src/session/remote/attribute.cc index 4a0e4bb..5cb92e0 100644 --- a/client/src/session/remote/attribute.cc +++ b/client/src/session/remote/attribute.cc @@ -84,11 +84,11 @@ public: IntAttribute(const IPC::Session *session, const LIB3270_INT_PROPERTY *worker) : TemplateAttribute(session, Attribute::Int32, worker) { - get.asString = [](const Attribute & attr, const void *worker) { + get.asString = [](const Attribute GNUC_UNUSED(& attr), const void GNUC_UNUSED(*worker)) { return std::to_string(attr.getInt32()); }; - get.asInt32 = [](const Attribute & attr, const void *worker) { + get.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker) { const struct Worker * w = (const struct Worker *) worker; @@ -102,17 +102,17 @@ }; - get.asUint32 = [](const Attribute & attr, const void *worker) { + get.asUint32 = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (uint32_t) attr.getInt32(); }; - get.asBoolean = [](const Attribute & attr, const void *worker) { + get.asBoolean = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (attr.getInt32() != 0); }; if(worker->set) { - set.asInt32 = [](const Attribute & attr, const void *worker, const int32_t value) { + set.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const int32_t value) { const struct Worker * w = (const struct Worker *) worker; @@ -122,10 +122,9 @@ }; - set.asUint32 = [](const Attribute & attr, const void *worker, const uint32_t value) { + set.asUint32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const uint32_t value) { const struct Worker * w = (const struct Worker *) worker; - int32_t rc; IPC::Request(*w->session,true,w->methods->name) .push(value) @@ -144,19 +143,19 @@ public: BooleanAttribute(const IPC::Session *session, const LIB3270_INT_PROPERTY *worker) : TemplateAttribute(session, Attribute::Boolean, worker) { - get.asString = [](const Attribute & attr, const void *worker) { + get.asString = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return attr.getBoolean() ? "true" : "false"; }; - get.asInt32 = [](const Attribute & attr, const void *worker) { + get.asInt32 = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (uint32_t) attr.getBoolean(); }; - get.asUint32 = [](const Attribute & attr, const void *worker) { + get.asUint32 = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (uint32_t) attr.getInt32(); }; - get.asBoolean = [](const Attribute & attr, const void *worker) { + get.asBoolean = [](const Attribute GNUC_UNUSED(& attr), const void *worker) { const struct Worker * w = (const struct Worker *) worker; @@ -171,7 +170,7 @@ if(worker->set) { - set.asInt32 = [](const Attribute & attr, const void *worker, const int32_t value) { + set.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const int32_t value) { const struct Worker * w = (const struct Worker *) worker; @@ -181,7 +180,7 @@ }; - set.asBoolean = [](const Attribute & attr, const void *worker, const bool value) { + set.asBoolean = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const bool value) { const struct Worker * w = (const struct Worker *) worker; @@ -197,23 +196,23 @@ }; // Toggle attribute - class TN3270_PRIVATE ToggleAttribute : public TemplateAttribute { + class TN3270_PRIVATE ToggleAttribute : public TemplateAttribute { public: - ToggleAttribute(const IPC::Session *session, const LIB3270_TOGGLE_ENTRY *worker) : TemplateAttribute(session, Attribute::Boolean, worker) { + ToggleAttribute(const IPC::Session *session, const LIB3270_TOGGLE *worker) : TemplateAttribute(session, Attribute::Boolean, worker) { - get.asString = [](const Attribute & attr, const void *worker) { + get.asString = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return attr.getBoolean() ? "true" : "false"; }; - get.asInt32 = [](const Attribute & attr, const void *worker) { + get.asInt32 = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (uint32_t) attr.getBoolean(); }; - get.asUint32 = [](const Attribute & attr, const void *worker) { + get.asUint32 = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (uint32_t) attr.getInt32(); }; - get.asBoolean = [](const Attribute & attr, const void *worker) { + get.asBoolean = [](const Attribute GNUC_UNUSED(& attr), const void *worker) { const struct Worker * w = (const struct Worker *) worker; @@ -226,7 +225,7 @@ return value; }; - set.asInt32 = [](const Attribute & attr, const void *worker, const int32_t value) { + set.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const int32_t value) { const struct Worker * w = (const struct Worker *) worker; @@ -236,7 +235,7 @@ }; - set.asBoolean = [](const Attribute & attr, const void *worker, const bool value) { + set.asBoolean = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const bool value) { const struct Worker * w = (const struct Worker *) worker; @@ -256,15 +255,15 @@ public: UnsignedIntAttribute(const IPC::Session *session, const LIB3270_UINT_PROPERTY *worker) : TemplateAttribute(session, Attribute::Boolean, worker) { - get.asString = [](const Attribute & attr, const void *worker) { + get.asString = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return std::to_string(attr.getUint32()); }; - get.asInt32 = [](const Attribute & attr, const void *worker) { + get.asInt32 = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (int32_t) attr.getUint32(); }; - get.asUint32 = [](const Attribute & attr, const void *worker) { + get.asUint32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker) { const struct Worker * w = (const struct Worker *) worker; @@ -278,16 +277,15 @@ }; - get.asBoolean = [](const Attribute & attr, const void *worker) { + get.asBoolean = [](const Attribute & attr, const void GNUC_UNUSED(*worker)) { return (attr.getUint32() != 0); }; if(worker->set) { - set.asInt32 = [](const Attribute & attr, const void *worker, const int32_t value) { + set.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const int32_t value) { const struct Worker * w = (const struct Worker *) worker; - int32_t rc; IPC::Request(*w->session,true,w->methods->name) .push(value) @@ -295,10 +293,9 @@ }; - set.asUint32 = [](const Attribute & attr, const void *worker, const uint32_t value) { + set.asUint32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const uint32_t value) { const struct Worker * w = (const struct Worker *) worker; - int32_t rc; IPC::Request(*w->session,true,w->methods->name) .push(value) @@ -315,7 +312,7 @@ public: StringAttribute(const IPC::Session *session, const LIB3270_STRING_PROPERTY *worker) : TemplateAttribute(session, Attribute::String, worker) { - get.asString = [](const Attribute & attr, const void *worker) { + get.asString = [](const Attribute GNUC_UNUSED(& attr), const void *worker) { const struct Worker * w = (const struct Worker *) worker; string value; @@ -328,7 +325,7 @@ }; - get.asInt32 = [](const Attribute & attr, const void *worker) { + get.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker) { const struct Worker * w = (const struct Worker *) worker; string value; @@ -343,10 +340,9 @@ if(worker->set) { - set.asString = [](const Attribute & attr, const void *worker, const char *value) { + set.asString = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const char *value) { const struct Worker * w = (const struct Worker *) worker; - int32_t rc; IPC::Request(*w->session,true,w->methods->name) .push(value) @@ -354,7 +350,7 @@ }; - set.asInt32 = [](const Attribute & attr, const void *worker, const int32_t value) { + set.asInt32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const int32_t value) { const struct Worker * w = (const struct Worker *) worker; @@ -364,7 +360,7 @@ }; - set.asUint32 = [](const Attribute & attr, const void *worker, const uint32_t value) { + set.asUint32 = [](const Attribute GNUC_UNUSED(& attr), const void *worker, const uint32_t value) { const struct Worker * w = (const struct Worker *) worker; @@ -422,7 +418,7 @@ // Check for boolean properties { - const LIB3270_TOGGLE_ENTRY *toggles = lib3270_get_toggle_list(); + const LIB3270_TOGGLE *toggles = lib3270_get_toggles(); for(size_t ix = 0; toggles[ix].name; ix++) { if(!strcasecmp(name,toggles[ix].name)) { @@ -479,7 +475,7 @@ // Add boolean properties { - const LIB3270_TOGGLE_ENTRY *toggles = lib3270_get_toggle_list(); + const LIB3270_TOGGLE *toggles = lib3270_get_toggles(); for(size_t ix = 0; toggles[ix].name; ix++) { attributes.push_back(ToggleAttribute(this,&toggles[ix])); } diff --git a/client/src/session/remote/properties.cc b/client/src/session/remote/properties.cc index 7c42cf2..874cc33 100644 --- a/client/src/session/remote/properties.cc +++ b/client/src/session/remote/properties.cc @@ -69,7 +69,7 @@ } - void IPC::Session::getAttribute(const char *name, bool &value) const { + void IPC::Session::getAttribute(const char GNUC_UNUSED(*name), bool GNUC_UNUSED(&value)) const { throw std::system_error(ENOTSUP, std::system_category()); } diff --git a/client/src/testprogram/testprogram.cc b/client/src/testprogram/testprogram.cc index 5acb9dd..73a388f 100644 --- a/client/src/testprogram/testprogram.cc +++ b/client/src/testprogram/testprogram.cc @@ -167,7 +167,7 @@ int main(int argc, char **argv) { - + /* const char * session = ":a"; #pragma GCC diagnostic push @@ -191,8 +191,9 @@ } } + */ - cout << "Session: " << session << endl; + // cout << "Session: " << session << endl; //testHost(session); //testAttributes(session); -- libgit2 0.21.2