--- rpl/src/gestion_pile.c 2011/09/26 15:57:11 1.32 +++ rpl/src/gestion_pile.c 2012/05/21 17:25:42 1.40 @@ -1,7 +1,7 @@ /* ================================================================================ - RPL/2 (R) version 4.1.4 - Copyright (C) 1989-2011 Dr. BERTRAND Joël + RPL/2 (R) version 4.1.9 + Copyright (C) 1989-2012 Dr. BERTRAND Joël This file is part of RPL/2. @@ -268,12 +268,18 @@ affichage_pile(struct_processus *s_etat_ void ecriture_pile(struct_processus *s_etat_processus, file *flux, - struct_liste_chainee *l_element_courant, unsigned long niveau_courant) + struct_liste_chainee *l, unsigned long niveau_courant) { unsigned char *chaine; unsigned char *registre; unsigned char tampon[32 + 1]; + // Évite le warning : argument l_element_courant might be clobbered by + // longjmp or vfork + volatile struct_liste_chainee *l_element_courant; + + l_element_courant = l; + if (l_element_courant != NULL) { if (setjmp(contexte_ecriture) == 0) @@ -366,7 +372,7 @@ ecriture_pile(struct_processus *s_etat_p void impression_pile(struct_processus *s_etat_processus, - struct_liste_chainee *l_element_courant, unsigned char methode, + struct_liste_chainee *l, unsigned char methode, unsigned long niveau_courant) { struct_objet s_objet; @@ -375,6 +381,12 @@ impression_pile(struct_processus *s_etat unsigned char *registre; unsigned char tampon[32 + 1]; + // Évite le warning : argument l_element_courant might be clobbered by + // longjmp or vfork + volatile struct_liste_chainee *l_element_courant; + + l_element_courant = l; + if (l_element_courant != NULL) { if (setjmp(contexte_impression) == 0)