lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

What warnings did your sample code actually produce with -Wunused-value turned on?

The code was this:

for (i=rows-1;i>=0;i--)
 { coeffs[i] = p;
   p += rows;
for (i=rows-1;i>=0;i--)
 { k = 1;
   for (j=0;j<rows;j++)
    { coeffs[i][j] = k;
      k *= i + x0;
Are you saying that gcc did cough out unused-value warnings when you compiled it with -Wall, or are you assuming it will if you do try it?