If you don't want to miss any warnings or anything then, just use -std= switch. Use `-std=c89. Link gcc docs provided by GNU is having the information about different switch available. If you are using any other compiler then see the respective documents.