Simplify wcast qual suppression (#167)
This change doesn't result in any change to the object code.
* Use simple way to suppress Wcast-qual warning
This method does not require pragmas, only cast over uintptr_t.
* Fix clang Wstrict-prototypes warning
A function declaration without a prototype is deprecated in all versions of C
Co-authored-by: Laurence Lundblade <laurencelundblade@users.noreply.github.com>
diff --git a/ub-example.c b/ub-example.c
index 4c48d31..996cf3a 100644
--- a/ub-example.c
+++ b/ub-example.c
@@ -214,7 +214,7 @@
#define INPUT "xyz123xyz"
-int32_t RunUsefulBufExample()
+int32_t RunUsefulBufExample(void)
{
/* ------------ UsefulBuf examples ------------- */
UsefulBufC Input = UsefulBuf_FROM_SZ_LITERAL(INPUT);