« It is a pedantic warning. Pedantic warnings are warnings in C and errors in C++, unless you use -fpermissive. So if you are seeing this in C++, the change was intentional because PR24924 was fixed. If you are seeing it in C and you are not using pedantic-errors, then it is probably a bug. »—Manuel López-Ibáñez (2007-30-27)
Cela dit je n'ai ce warning en C avec les options de compilation par défaut qu'avec gcc 4.2, pas avec les branches plus récentes (de 4.4 à 4.7).
# version de gcc ?
Posté par JGO . En réponse au message Pourquoi a-t-on besoin d'un retour à la ligne à la fin d'un fichier compilé par GCC ?. Évalué à 3. Dernière modification le 19 avril 2012 à 15:35.
Je ne sais pas pourquoi c'est considéré comme mal-formé par le préprocesseur, mais tu peux toujours voir ce thread : http://gcc.gnu.org/ml/gcc/2007-03/msg01014.html
« It is a pedantic warning. Pedantic warnings are warnings in C and errors in C++, unless you use -fpermissive. So if you are seeing this in C++, the change was intentional because PR24924 was fixed. If you are seeing it in C and you are not using pedantic-errors, then it is probably a bug. »—Manuel López-Ibáñez (2007-30-27)
Cela dit je n'ai ce warning en C avec les options de compilation par défaut qu'avec gcc 4.2, pas avec les branches plus récentes (de 4.4 à 4.7).