Commit Graph
9 Commits
Author SHA1 Message Date
Nigel Tao 3ff7c707af Have some base types' methods accept const this 2019-04-20 07:50:09 +10:00
Nigel Tao 6b9f658c59 Add some more compiler warning flags 2019-04-07 16:34:10 +10:00
Nigel Tao d8b5128c09 Compile cleanly with clang++ 2019-04-07 16:16:14 +10:00
Nigel Tao 3c86337cac Fix some more -Wconversion warnings 2019-04-07 16:04:30 +10:00
Nigel Tao 665355bd8a Fix some -Wconversion warnings 2019-04-07 14:55:32 +10:00
Nigel Tao ed52fdecb9 Rework how we avoid clang's -Wunused-function
The previous technique to avoid this was to have explicit

(void)(wuffs_foo__bar_baz);

no-op lines of code. However, on MSVC, this triggers warning C4551
"function call missing argument list".

https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4551
says that "A function call must include the open and close parentheses".
But this is not a function call, it is casting the function pointer.
This false positive is a bug in MSVC, but we work around it for Wuffs.
2019-04-07 14:36:09 +10:00
Nigel Tao f59e16e337 Add a lib/zlibcut package 2019-04-06 10:16:43 +11:00
Nigel Tao 5a98f06cab Add some make_foo and null_foo constructors 2019-03-09 14:50:32 +11:00
Nigel Tao 6826f2f748 Move internal/cgen up a couple of directories 2019-03-09 13:28:59 +11:00