From: Jan Engelhardt Date: 2020-10-26 16:57:34.477468291 +0100 hiccup.c:1109:1: error: no return statement in function returning non-void [-Werror=return-type] etc. --- src/hiccup.c | 10 ++++++++++ src/lo.c | 2 +- src/mo.c | 5 +++++ src/mod_dg_sbd.c | 2 ++ src/nc.c | 1 + src/pr.c | 2 ++ src/rest.c | 12 ++++++------ src/rh.c | 32 +++++++++++++++++++++++++++----- 8 files changed, 54 insertions(+), 12 deletions(-) Index: symmetrica-3.0.1/src/hiccup.c =================================================================== --- symmetrica-3.0.1.orig/src/hiccup.c +++ symmetrica-3.0.1/src/hiccup.c @@ -825,6 +825,7 @@ int hecke_action ( tableau, permutation b_sn_l(tab_mo,NULL,list); hecke_action_perm_on_lc(list,perm_cop); /* perm_cop freed in hecke_action_perm_on_lc */ + return 0; } static INT axel_ll,axel_kk; @@ -1106,6 +1107,7 @@ static int standardise_tableau_list ( li set_multiplier(S_MO_K(S_L_S(a))); standardise_tableau(S_MO_S(S_L_S(a)),expression); } + return 0; } @@ -1140,6 +1142,7 @@ static int standardise_tableau ( tableau garnir_juggle(tableau,(INT)0,(INT)((swaps&1) ? -1 : 1)); + return 0; } @@ -1218,6 +1221,7 @@ static int garnir_juggle ( tableau, pow } freeall(store); + return 0; } @@ -1297,6 +1301,7 @@ static int garnir_generate ( head, wag) } garnir_len--; /* restores value */ + return 0; } @@ -1356,6 +1361,7 @@ static int garnir_result ( tableau, mp_ insert(mp_coeff,S_MO_K(S_L_S(a)),add_koeff,NULL); } } + return 0; } @@ -1404,6 +1410,7 @@ INT enter_list_to_matrix ( matrix, colum } while (express!=NULL && empty_listp(S_MO_K(S_L_S(express)))); } } + return 0; } @@ -3064,6 +3071,7 @@ INT remove_mp_qnumber_fac ( mp, qn) C_O_K(accumulate,EMPTY); freeall(accumulate); } + return 0; } @@ -3140,6 +3148,7 @@ INT remove_vec_qnumber ( qn) INT qn; } /* the quotient remains in poly and there are no entries q^root & above */ + return 0; } @@ -3448,6 +3457,7 @@ INT free_cyclotomic_parameters () c_vec=NULL; c_root=0; } + return 0; } Index: symmetrica-3.0.1/src/lo.c =================================================================== --- symmetrica-3.0.1.orig/src/lo.c +++ symmetrica-3.0.1/src/lo.c @@ -30,7 +30,7 @@ static INT longint_speicher_ende(); static INT nofolgezeichen=0; -INT set_lo_nopoint(para) INT para; { nofolgezeichen=para; } +INT set_lo_nopoint(para) INT para; { nofolgezeichen=para; return 0; } static INT ganzadd(); static INT ganzanfang(); Index: symmetrica-3.0.1/src/mo.c =================================================================== --- symmetrica-3.0.1.orig/src/mo.c +++ symmetrica-3.0.1/src/mo.c @@ -1323,6 +1323,7 @@ static struct ak * ak_tmpfile() a->ptr = NULL; #endif init_mat(); + return 0; } static INT ak_rewind(a) struct ak *a; @@ -1396,14 +1397,17 @@ static INT mat_size; INT tl_set_prime(p) INT p; { tl_prime = p; + return 0; } INT tl_set_max_numb(p) INT p; { tl_max_numb = p; + return 0; } INT tl_set_index_inc(p) INT p; { tl_index_inc = p; + return 0; } #ifdef UNDEF #define PRIME 9973 /* 40993 */ @@ -1503,6 +1507,7 @@ TL_2BYTE koeff; } + return 0; } Index: symmetrica-3.0.1/src/mod_dg_sbd.c =================================================================== --- symmetrica-3.0.1.orig/src/mod_dg_sbd.c +++ symmetrica-3.0.1/src/mod_dg_sbd.c @@ -60,6 +60,7 @@ static INT println_bid(a) OP a; } printf("\n");zeilenposition=0; + return 0; } static INT make_basis(e,prim,v) OP e; OP prim; @@ -387,6 +388,7 @@ INT kk_280604 (part,e,prim) OP part,e,pr } freeall(a); close_zero_one(); + return 0; } Index: symmetrica-3.0.1/src/nc.c =================================================================== --- symmetrica-3.0.1.orig/src/nc.c +++ symmetrica-3.0.1/src/nc.c @@ -2038,6 +2038,7 @@ static INT J_matrix(n,q,m) OP n,q,m; FORALL(y,m,{ null_ff_given_q(q,y); }); for (j=0;jinfozeig->unten=NULL; + return 0; } static int card_reihe(a) REIHE_zeiger a; @@ -259,6 +263,7 @@ static int card_reihe(a) REIHE_zeiger a; zeigpoly=zeigpoly->rechts; } while (zeigpoly!=NULL); } + return 0; } static int card_typ_reihe(a) REIHE_zeiger a; @@ -290,6 +295,7 @@ static int card_typ_reihe(a) REIHE_zeige zeigpoly=zeigpoly->rechts; } while (zeigpoly!=NULL); } + return 0; } @@ -517,6 +523,7 @@ INT Exp_eingabe(root, anzahl) REIHE_zeig freeall(b); freeall(d); freeall(f); + return 0; } @@ -589,6 +596,7 @@ static INT co_261093(root,anzahl,func) R freeall(b); freeall(d); freeall(f); + return 0; } INT Sinus_eingabe(root,anzahl) REIHE_zeiger root; INT anzahl; @@ -882,6 +890,7 @@ static int make_skalar_reihe(a) REIHE_ze scan(scanobjectkind(),(*a)->infozeig->unten->coeff); (*a)->infozeig->unten->zeiger=NULL; (*a)->infozeig->unten->ref=NULL; + return 0; } @@ -987,6 +996,7 @@ static int ausgabe(f, r) REIHE_zeiger r; zeigpoly=zeigpoly->rechts; } while (zeigpoly!=NULL); } + return 0; } static INT reihevergleich (s, r) REIHE_zeiger s,r; @@ -1134,6 +1144,7 @@ static int ableitung_reihe(a,n,c,anzahl } } c->exist+=anzahl; + return 0; } @@ -1197,6 +1208,7 @@ static int copyy_monom(m1,m2) struct REI zvar_eins=zvar_eins->weiter; } while (zvar_eins!=NULL); } + return 0; } @@ -1468,6 +1480,7 @@ static int del_reihe(a) REIHE_zeiger *a; free_null((char*)*a); *a = NULL; } + return 0; } INT copy_reihe(a,b) OP a,b; @@ -1620,6 +1633,7 @@ static int pot_reihe(a,n,c,anzahl) REIH } } c->exist+=anzahl; + return 0; } @@ -1803,6 +1817,7 @@ static int trans_reihe_in_monom(a,m,b,a del_reihe(&help_zwei); *b=help_drei; + return 0; } @@ -1868,6 +1883,7 @@ static int subst_reihe(a,b,c,anzahl) REI (*c)->reihenart=0L; (*c)->exist=anzahl; (*c)->ope='s'; + return 0; } @@ -2045,6 +2061,7 @@ static int transform_reihe(a,n,c,anzahl } } c->exist+=anzahl; + return 0; } INT m_perm_reihe(a) OP a; @@ -2309,6 +2326,7 @@ static int debugprint_rh(a) REIHE_zeiger doffset += 2L; debugprint_rh_poly(a->infozeig); doffset -= 2L; + return 0; } static int debugprint_rh_poly(a) struct REIHE_poly *a; @@ -2333,6 +2351,7 @@ static int debugprint_rh_poly(a) struct doffset += 2L; debugprint_rh_poly(a->rechts); doffset -= 2L; + return 0; } static int debugprint_rh_mon(a) struct REIHE_mon *a; { @@ -2359,6 +2378,7 @@ static int debugprint_rh_mon(a) struct R doffset += 2L; debugprint_rh_mon(a->ref); doffset -= 2L; + return 0; } static int debugprint_rh_var(a) struct REIHE_variablen *a; { @@ -2381,6 +2401,7 @@ static int debugprint_rh_var(a) struct R doffset += 2L; debugprint_rh_var(a->weiter); doffset -= 2L; + return 0; } INT addinvers_reihe(a,b) OP a,b; @@ -2668,6 +2689,7 @@ INT rh_test() freeall(a); freeall(b); freeall(c); freeall(d); freeall(e); freeall(f);freeall(g);freeall(h);freeall(h2); + return 0; } #endif /* REIHETRUE */ #ifdef REIHETRUE