[Top][All Lists]

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

Re: [Bug-glpk] misc/wclique1.c:121:7: warning: 'memset': specified size

From: Andrew Makhorin
Subject: Re: [Bug-glpk] misc/wclique1.c:121:7: warning: 'memset': specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
Date: Sat, 03 Feb 2018 00:28:17 +0300


> Please, add the missing explicit conversions to silence the warning.

It is a bad idea. Besides, the GNU Coding Standard recommends not to do
explicit casting if it is not needed. 

Please see
http://lists.gnu.org/archive/html/bug-glpk/2017-10/msg00003.html .

> Distributions like Debian want to be able to set a compiler flag which
> treats every warning as error.

Wow! I don't think it is a good idea, because then many legal C features
could not be used. What about "trust the programmer"? :)

Best regards,

Andrew Makhorin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]