]> Savannah Git Hosting - gnulib.git/commitdiff
tests: pacify Sun C 5.9
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Nov 2020 23:13:40 +0000 (15:13 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Nov 2020 23:14:04 +0000 (15:14 -0800)
Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
“"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
* tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
(thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
* tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
* tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
Remove unreachable ‘return NULL;’s.

ChangeLog
tests/test-nl_langinfo-mt.c
tests/test-setlocale_null-mt-all.c
tests/test-setlocale_null-mt-one.c

index fc36c1daea8e1d64e33c3f8c1fe59d19bce7f534..f30e1489b968ae1d97174adf27de4d7eae2a2498 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
 
+       tests: pacify Sun C 5.9
+       Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
+       “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
+       * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
+       (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
+       * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
+       * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
+       Remove unreachable ‘return NULL;’s.
+
        tests: port better to XLC 12.01
        * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
        even in code that is not executed, as IBM XLC 12.01 complains "The
index de6cd998b7d459890754340b108acbe464482183..4d207f1be9899c310b00ba571d3fef2047bb6b9e 100644 (file)
@@ -72,7 +72,6 @@ thread1_func (void *arg)
     }
 
   /*NOTREACHED*/
-  return NULL;
 }
 
 static char *expected2;
@@ -91,7 +90,6 @@ thread2_func (void *arg)
     }
 
   /*NOTREACHED*/
-  return NULL;
 }
 
 static char *expected3;
@@ -110,7 +108,6 @@ thread3_func (void *arg)
     }
 
   /*NOTREACHED*/
-  return NULL;
 }
 
 static char *expected4;
@@ -129,7 +126,6 @@ thread4_func (void *arg)
     }
 
   /*NOTREACHED*/
-  return NULL;
 }
 
 static char *expected5;
@@ -148,7 +144,6 @@ thread5_func (void *arg)
     }
 
   /*NOTREACHED*/
-  return NULL;
 }
 
 static char *expected6;
@@ -167,7 +162,6 @@ thread6_func (void *arg)
     }
 
   /*NOTREACHED*/
-  return NULL;
 }
 
 static void *
@@ -188,7 +182,6 @@ threadN_func (void *arg)
     }
 
   /*NOTREACHED*/
-  return NULL;
 }
 
 int
index 19bdb55de6cbb4807e15f9e4d19a674f3935583e..6dbf4766c6b4e258dcf8c93278bb0205ac7beb8a 100644 (file)
@@ -78,7 +78,6 @@ thread1_func (void *arg)
     }
 
   /*NOTREACHED*/
-  return NULL;
 }
 
 static void *
@@ -93,7 +92,6 @@ thread2_func (void *arg)
     }
 
   /*NOTREACHED*/
-  return NULL;
 }
 
 int
index fd6083a58d15c7731814cdd7bcb1fd4143601ab5..f07aaf4c60821d98dcdeb63320279991b35fc240 100644 (file)
@@ -78,7 +78,6 @@ thread1_func (void *arg)
     }
 
   /*NOTREACHED*/
-  return NULL;
 }
 
 static void *
@@ -93,7 +92,6 @@ thread2_func (void *arg)
     }
 
   /*NOTREACHED*/
-  return NULL;
 }
 
 int