Explorar o código

fix again warnings

Corentin Salingue %!s(int64=8) %!d(string=hai) anos
pai
achega
d3404e6297
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/core/perfmodel/perfmodel_bus.c

+ 2 - 2
src/core/perfmodel/perfmodel_bus.c

@@ -1202,7 +1202,7 @@ static double search_bus_best_latency(int src, char * type, int htod)
 {
 {
 	/* Search the best latency for this node */
 	/* Search the best latency for this node */
 	double best = 0.0;
 	double best = 0.0;
-	double actual;
+	double actual = 0.0;
 	unsigned check = 0;
 	unsigned check = 0;
 	unsigned numa;
 	unsigned numa;
 	for (numa = 0; numa < nnumas; numa++)
 	for (numa = 0; numa < nnumas; numa++)
@@ -1539,7 +1539,7 @@ static double search_bus_best_timing(int src, char * type, int htod)
 {
 {
         /* Search the best latency for this node */
         /* Search the best latency for this node */
         double best = 0.0;
         double best = 0.0;
-        double actual; 
+        double actual = 0.0; 
         unsigned check = 0;
         unsigned check = 0;
         unsigned numa; 
         unsigned numa; 
         for (numa = 0; numa < nnumas; numa++)
         for (numa = 0; numa < nnumas; numa++)