American Citizen on Mon, 14 Oct 2024 01:19:49 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
question on code checking |
Hello all:I am using gp2c-run command to check my GP-Pari scripts for completeness. However if my module has read statements in it, where I refer to another pari package, how do I avoid this following warnings from being published?
This is from my sample run with the case1.gp module owner@localhost:~/math/Herons> gp2c-run case1.gp Warning:case1.gp:24: function prototype is unknown ell_reduce_pts(e,q) Warning:case1.gp:26: function prototype is unknown ellpool(e,p,size) Warning:case1.gp:39: function prototype is unknown full_halftans(r,l[i]) Warning:case1.gp:46: function prototype is unknown publish_full(L[i]) case1.gp.c: In function ‘ratio_to_points’:case1.gp.c:80:7: warning: implicit declaration of function ‘ell_reduce_pts’ [-Wimplicit-function-declaration]
80 | p = ell_reduce_pts(e, q); | ^~~~~~~~~~~~~~case1.gp.c:80:5: warning: assignment to ‘GEN’ {aka ‘long int *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
80 | p = ell_reduce_pts(e, q); | ^case1.gp.c:83:7: warning: implicit declaration of function ‘ellpool’; did you mean ‘lgpol’? [-Wimplicit-function-declaration]
83 | L = ellpool(e, p, size); | ^~~~~~~ | lgpolcase1.gp.c:83:5: warning: assignment to ‘GEN’ {aka ‘long int *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
83 | L = ellpool(e, p, size); | ^ case1.gp.c: In function ‘create_list’:case1.gp.c:113:20: warning: implicit declaration of function ‘full_halftans’ [-Wimplicit-function-declaration]
113 | gel(p1, i) = full_halftans(r, gel(l, i)); | ^~~~~~~~~~~~~case1.gp.c:113:18: warning: assignment to ‘GEN’ {aka ‘long int *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
113 | gel(p1, i) = full_halftans(r, gel(l, i)); | ^ case1.gp.c: In function ‘find_one’:case1.gp.c:130:20: warning: implicit declaration of function ‘publish_full’ [-Wimplicit-function-declaration]
130 | gel(p1, i) = publish_full(gel(L, i)); | ^~~~~~~~~~~~case1.gp.c:130:18: warning: assignment to ‘GEN’ {aka ‘long int *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
130 | gel(p1, i) = publish_full(gel(L, i)); | ^ Reading GPRC: /home/owner/.gprc GPRC Done. GP/PARI CALCULATOR Version 2.17.0 (released)amd64 running linux (x86-64/GMP-6.3.0 kernel) 64-bit version
compiled: Oct 3 2024, gcc version 13.3.0 (SUSE Linux) threading engine: single (readline v7.0 enabled, extended help enabled) Copyright (C) 2000-2024 The PARI GroupPARI/GP is free software, covered by the GNU General Public License, and comes WITHOUT ANY WARRANTY WHATSOEVER.
Type ? for help, \q to quit. Type ?18 for how to get moral (and possibly technical) support. parisizemax = 10000003072, primelimit = 1048576, factorlimit = 1048576 ? \q Goodbye! -------------------- Do I need some type of function prototype, before doing the read statements? - Randall