Função retorna valor sem declaração de retorno

Por que o código a seguir tem uma saída correta? int GGT não tem declaração de retorno, mas o código funciona mesmo assim? Não há variáveis globais definidas.

#include <stdio.h>
#include <stdlib.h>

int GGT(int, int);

void main() {
    int x1, x2;
    printf("Bitte geben Sie zwei Zahlen ein: \n");
    scanf("%d", &x1);
    scanf("%d", &x2);
    printf("GGT ist: %d\n", GGT(x1, x2));
    system("Pause");
}

int GGT(int x1, int x2) {
    while(x1 != x2) {
        if(x1 > x2) {
            /*return*/ x1 = x1 - x2;
        }
        else {
            /*return*/ x2 = x2 - x1;
        }
    }
}

questionAnswers(5)

yourAnswerToTheQuestion