diff --git a/sources/Example_affinity.1c.c b/sources/Example_affinity.1c.c
index 8612024..82222cf 100644
--- a/sources/Example_affinity.1c.c
+++ b/sources/Example_affinity.1c.c
@@ -6,10 +6,11 @@
 * @@expect:	success
 */
 void work();
-void main()
+int main()
 {
 #pragma omp parallel proc_bind(spread) num_threads(4)
    {
       work();
    }
+   return 0;
 }
diff --git a/sources/Example_affinity.3c.c b/sources/Example_affinity.3c.c
index 22e6bd1..9167ce1 100644
--- a/sources/Example_affinity.3c.c
+++ b/sources/Example_affinity.3c.c
@@ -6,10 +6,11 @@
 * @@expect:	success
 */
 void work();
-void main()
+int main()
 {
 #pragma omp parallel proc_bind(close) num_threads(4)
    {
       work();
    }
+   return 0;
 }
diff --git a/sources/Example_affinity.5c.c b/sources/Example_affinity.5c.c
index 45d29de..921156d 100644
--- a/sources/Example_affinity.5c.c
+++ b/sources/Example_affinity.5c.c
@@ -6,10 +6,11 @@
 * @@expect:	success
 */
 void work();
-void main()
+int main()
 {
 #pragma omp parallel proc_bind(master) num_threads(4)
    {
       work();
    }
+   return 0;
 }
diff --git a/sources/Example_fpriv_sections.1c.c b/sources/Example_fpriv_sections.1c.c
index b1454ef..a11efbc 100644
--- a/sources/Example_fpriv_sections.1c.c
+++ b/sources/Example_fpriv_sections.1c.c
@@ -28,5 +28,5 @@ int main( ) {
         printf( "section_count %d\n", section_count );
     }
 }
-    return 1;
+    return 0;
 }
diff --git a/sources/Example_reduction.3c.c b/sources/Example_reduction.3c.c
index 4dd9dc6..e5c7812 100644
--- a/sources/Example_reduction.3c.c
+++ b/sources/Example_reduction.3c.c
@@ -26,4 +26,5 @@ int main (void)
     #pragma omp single
     printf ("Sum is %d\n", a);
   }
+  return 0;
 }
diff --git a/sources/Example_taskgroup.1c.c b/sources/Example_taskgroup.1c.c
index 66e9c6b..abe576a 100644
--- a/sources/Example_taskgroup.1c.c
+++ b/sources/Example_taskgroup.1c.c
@@ -56,4 +56,5 @@ int main()
     }
   } // only now is background work required to be complete
   print_results();
+  return 0;
 }