Make osqp build
Prep for using it in the catapult.
Change-Id: Ic642b1c04469563de13a8a6227407aacb75eff6a
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/third_party/osqp/src/error.c b/third_party/osqp/src/error.c
index e0c069e..767bb17 100644
--- a/third_party/osqp/src/error.c
+++ b/third_party/osqp/src/error.c
@@ -1,4 +1,4 @@
-#include "error.h"
+#include "osqp_error.h"
const char *OSQP_ERROR_MESSAGE[] = {
"Problem data validation.",
@@ -15,6 +15,8 @@
const char * function_name) {
# ifdef PRINTING
c_print("ERROR in %s: %s\n", function_name, OSQP_ERROR_MESSAGE[error_code-1]);
+# else
+ (void)function_name;
# endif
return (c_int)error_code;
}