d87f6c9
--- src/basemath/bibli1.c
d87f6c9
+++ src/basemath/bibli1.c
06e7417
@@ -1565,7 +1565,7 @@ cholesky_norm_ek(GEN q, long k)
87fecc4
  * If (check != NULL) consider only vectors passing the check, and assumes
87fecc4
  *   we only want the smallest possible vectors */
87fecc4
 static GEN
87fecc4
-smallvectors(GEN q, GEN BORNE, long maxnum, FP_chk_fun *CHECK)
87fecc4
+smallvectors(GEN q, GEN BORNE, const long maxnum, FP_chk_fun *CHECK)
87fecc4
 {
87fecc4
   long N = lg(q), n = N-1, i, j, k, s, stockmax, checkcnt = 1;
06e7417
   pari_sp av, av1;
06e7417
@@ -1793,9 +1793,9 @@ END:
d87f6c9
  * If check is non-NULL keep x only if check(x).
d87f6c9
  * If a is a vector, assume a[1] is the LLL-reduced Cholesky form of q */
d87f6c9
 GEN
d87f6c9
-fincke_pohst(GEN a, GEN B0, long stockmax, long PREC, FP_chk_fun *CHECK)
87fecc4
+fincke_pohst(GEN a, GEN B0, const long stockmax, long PREC, FP_chk_fun *CHECK)
d87f6c9
 {
d87f6c9
-  pari_sp av = avma;
d87f6c9
+  VOLATILE pari_sp av = avma;
d87f6c9
   VOLATILE long i,j,l;
d87f6c9
   VOLATILE GEN r,rinv,rinvtrans,u,v,res,z,vnorm,rperm,perm,uperm, bound = B0;
d87f6c9
 
d87f6c9
--- src/gp/gp.c
d87f6c9
+++ src/gp/gp.c
06e7417
@@ -421,7 +421,8 @@ break_loop(int numerr)
4284d36
 {
4284d36
   filtre_t F;
4284d36
   Buffer *b;
4284d36
-  int sigint = numerr<0, go_on = sigint;
4284d36
+  int sigint = numerr<0;
4284d36
+  VOLATILE int go_on = sigint;
06e7417
   struct gp_context rec1, rec2;
4284d36
   const char *prompt, *msg;
06e7417
   long nenv, oldframe_level = frame_level;
06e7417
--- src/headers/paripriv.h
06e7417
+++ src/headers/paripriv.h
06e7417
@@ -532,7 +532,7 @@ void pari_thread_init_varstate();
06e7417
 
06e7417
 /* parinf.h */
87fecc4
 
87fecc4
-GEN fincke_pohst(GEN a,GEN BOUND,long stockmax,long PREC, FP_chk_fun *CHECK);
87fecc4
+GEN fincke_pohst(GEN a,GEN BOUND,const long stockmax,long PREC, FP_chk_fun *CHECK);
06e7417
 void init_zlog_bid(zlog_S *S, GEN bid);
06e7417
 GEN  log_gen_arch(zlog_S *S, long index);
06e7417
 GEN  log_gen_pr(zlog_S *S, long index, GEN nf, long e);
06e7417
--- src/language/gplib.c
06e7417
+++ src/language/gplib.c
06e7417
@@ -920,7 +920,7 @@ parse_key_val(char *src, char **ps, char
06e7417
 void
06e7417
 gp_initrc(pari_stack *p_A)
06e7417
 {
06e7417
-  FILE *file = gprc_get();
06e7417
+  FILE * VOLATILE file = gprc_get();
06e7417
   Buffer *b;
06e7417
   filtre_t F;
06e7417
   VOLATILE long c = 0;
d87f6c9
--- src/modules/stark.c
d87f6c9
+++ src/modules/stark.c
06e7417
@@ -2788,9 +2788,10 @@ quadray_init(GEN *pD, GEN f, GEN *pbnf,
d87f6c9
 /* compute the polynomial over Q of the Hilbert class field of
d87f6c9
    Q(sqrt(D)) where D is a positive fundamental discriminant */
d87f6c9
 static GEN
d87f6c9
-quadhilbertreal(GEN D, long prec)
87fecc4
+quadhilbertreal(GEN D, long baseprec)
d87f6c9
 {
d87f6c9
   pari_sp av = avma;
87fecc4
+  VOLATILE long prec = baseprec;
d87f6c9
   long newprec;
87fecc4
   GEN bnf;
87fecc4
   VOLATILE GEN bnr, dtQ, data, nf, cyc, M;