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/example.c b/example.c
index 80b2149..d580c78 100644
--- a/example.c
+++ b/example.c
@@ -307,7 +307,7 @@
}
-int32_t RunQCborExample()
+int32_t RunQCborExample(void)
{
CarEngine InitialEngine;
CarEngine DecodedEngine;