Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Needless XBT_ATTRIB_UNUSED.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 25 Feb 2020 08:11:32 +0000 (09:11 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 25 Feb 2020 21:21:16 +0000 (22:21 +0100)
examples/s4u/async-wait/s4u-async-wait.cpp
examples/smpi/NAS/ep.c
src/bindings/java/JavaContext.cpp
src/surf/xml/surfxml_sax_cb.cpp

index 95b883d..1a3fb9b 100644 (file)
@@ -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;
index 329b615..da910c8 100644 (file)
@@ -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++) {
index ff99355..29cf71f 100644 (file)
@@ -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().
index 3cf6edf..355cba0 100644 (file)
@@ -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"