Skip to content

Commit

Permalink
eliminate all compiler warnings from -Wall except one in newforms.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCremona committed Mar 6, 2024
1 parent dcc8080 commit 93a1878
Show file tree
Hide file tree
Showing 25 changed files with 293 additions and 354 deletions.
8 changes: 4 additions & 4 deletions libsrc/arith.cc
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ vector<long> posdivs(long a, const vector<long>& plist)
{
// cout << "In posdivs with a = " << a << endl;
// cout << plist.size() << " primes: " <<endl; cout << plist << endl;
long j,k,p,e,nd = 1;
long j,k,e,nd = 1;
vector<long> dlist(1,1); // cout << "Divisor 0 = 1" << endl;
for (const auto& p : plist)
{
Expand All @@ -209,7 +209,7 @@ vector<long> posdivs(long a, const vector<long>& plist)
vector<long> alldivs(long a, const vector<long>& plist)
{//cout << "In alldivs with a = " << a << endl;
// cout << plist.size() << " primes: " <<endl; cout << plist << endl;
long j,k,p,e,nd = 2;
long j,k,e,nd = 2;
vector<long> dlist(1,1); // cout << "Divisor 0 = 1" << endl;
dlist.push_back(-1); // cout << "Divisor 1 = -1" << endl;
for (const auto& p : plist)
Expand All @@ -226,7 +226,7 @@ vector<long> alldivs(long a, const vector<long>& plist)

vector<long> sqdivs(long a, const vector<long>& plist)
{
long j,k,p,e,nd = 1;
long j,k,e,nd = 1;
vector<long> dlist(1,1);
for (const auto& p : plist)
{
Expand All @@ -242,7 +242,7 @@ vector<long> sqdivs(long a, const vector<long>& plist)

vector<long> sqfreedivs(long a, const vector<long>& plist)
{
long j,k,p,e,nd = 1;
long j,k,e,nd = 1;
vector<long> dlist(1,1);
for (const auto& p : plist)
{
Expand Down
Loading

0 comments on commit 93a1878

Please sign in to comment.