Closed GoogleCodeExporter closed 8 years ago
OK. Not sure if it is a big issue (I personally like the simple () )
but the fix is simple enough,
so as long as no compiler complain about, that's a fine addition.
Original comment by yann.col...@gmail.com
on 27 Feb 2014 at 7:06
The attached file
is a wip r114 package
which implements your recommended changes
into *.h files.
Original comment by yann.col...@gmail.com
on 27 Feb 2014 at 10:33
Attachments:
Thanks. This normally is not an issue when compiling C++ code, but in C,
function prototype without argument means a function that can take arbitrary
number of arguments. Which could be a problem, and if compile with -Wall you
will see this warning. Since we use -Werror as well, so compiler stops at here.
Original comment by sunxiaoguang@gmail.com
on 28 Feb 2014 at 1:31
You're welcomed.
As a minor comment : note that the current Makefile of LZ4 uses -Wall argument,
however it has never complained (warned) about such issue, on none of my
systems.
Maybe this particular warning requires more than -Wall to be triggered ? For
example, I already had to add -Wundef to get additional warnings that -Wall was
not providing.
Original comment by yann.col...@gmail.com
on 28 Feb 2014 at 1:36
Sorry, It was my mistake. The flags caused compiler to scream is
-Wstrict-prototypes. We build enterprise software and had to support many many
operating systems so we tend to use very strict compiler settings to catch
possible issues early. Thanks again to point out this.
Original comment by sunxiaoguang@gmail.com
on 28 Feb 2014 at 1:47
Fixed into r114
Original comment by yann.col...@gmail.com
on 12 Mar 2014 at 2:56
Original issue reported on code.google.com by
sunxiaoguang@gmail.com
on 22 Feb 2014 at 12:38Attachments: