From: Arnaud Giersch Date: Tue, 25 Feb 2020 08:11:32 +0000 (+0100) Subject: Needless XBT_ATTRIB_UNUSED. X-Git-Tag: v3.26~875 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/627857967e297ea0191d97addc4519efbf2d5dc2 Needless XBT_ATTRIB_UNUSED. --- diff --git a/examples/s4u/async-wait/s4u-async-wait.cpp b/examples/s4u/async-wait/s4u-async-wait.cpp index 95b883d059..1a3fb9b9a3 100644 --- a/examples/s4u/async-wait/s4u-async-wait.cpp +++ b/examples/s4u/async-wait/s4u-async-wait.cpp @@ -56,7 +56,7 @@ static void sender(int argc, char** argv) } /* Receiver actor expects 1 argument: its ID */ -static void receiver(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char** argv) +static void receiver(int, char**) { double sleep_start_time = 1.0; double sleep_test_time = 0.1; diff --git a/examples/smpi/NAS/ep.c b/examples/smpi/NAS/ep.c index 329b6157a7..da910c85d5 100644 --- a/examples/smpi/NAS/ep.c +++ b/examples/smpi/NAS/ep.c @@ -15,7 +15,6 @@ int nprocs; int main(int argc, char **argv) { double dum[3] = {1.,1.,1.}; double x1, x2, sx, sy, tm, an, gc; - XBT_ATTRIB_UNUSED double tt; double Mops; double epsilon=1.0E-8, a = 1220703125., s=271828183.; double t1, t2, t3, t4; @@ -118,9 +117,7 @@ int main(int argc, char **argv) { t2 = randlc(&t1, &t1); } an = t1; - tt = s; gc = 0; - tt = 0.; sx = 0.; sy = 0.; for (i=0; i < nq ; i++) { diff --git a/src/bindings/java/JavaContext.cpp b/src/bindings/java/JavaContext.cpp index ff993551c4..29cf71f81c 100644 --- a/src/bindings/java/JavaContext.cpp +++ b/src/bindings/java/JavaContext.cpp @@ -65,7 +65,7 @@ void JavaContext::stop_hook() { JNIEnv* env = this->jenv_; env->DeleteGlobalRef(this->jprocess_); - XBT_ATTRIB_UNUSED jint error = __java_vm->DetachCurrentThread(); + jint error = __java_vm->DetachCurrentThread(); if (error != JNI_OK) { /* This is probably a Java thread, ie an actor not created from the XML (and thus from the C++), * but from Java with something like new Process().start(). diff --git a/src/surf/xml/surfxml_sax_cb.cpp b/src/surf/xml/surfxml_sax_cb.cpp index 3cf6edf3f1..355cba0bd4 100644 --- a/src/surf/xml/surfxml_sax_cb.cpp +++ b/src/surf/xml/surfxml_sax_cb.cpp @@ -350,7 +350,7 @@ void ETag_surfxml_include() /* Stag and Etag parse functions */ void STag_surfxml_platform() { - XBT_ATTRIB_UNUSED double version = surf_parse_get_double(A_surfxml_platform_version); + double version = surf_parse_get_double(A_surfxml_platform_version); surf_parse_assert((version >= 1.0), "******* BIG FAT WARNING *********\n " "You're using an ancient XML file.\n"