i have the following warning when compiling with "gcc -ansi -Wall -pedantic conc.c" what i"m doing wrong , please assist
Thanks,
conc.c: In function ‘main’: conc.c:8:1: warning: control reaches end of non-void function [-Wreturn-type]
#include <stdio.h>
void contract(char s1[], char s2[]);
int main()
{
    char s1[] = "abcd";
    char s2[] = "zzzz";
    contract(s1,s2);
}
void contract(char s1[], char s2[])
{
    char temp = 'a';
    int i = 0;
    while (s1[i] != '\0')
    {
        temp = s1[i];
        i++;
    }
    if (i != 2)
    {
        s2[0] = s1[0];
        s2[1] = '-';
        s2[2] = temp;
    }
    printf ("\n The first char string is %s \n the shorten one is %s \n",s1,s2);
}
 
     
     
    