Remove unused ARGPAR_PRINTF_FORMAT macro
[argpar.git] / argpar / argpar.c
index 47056b89f069bd3b100eaed3c874a1b55e62d95a..55995124fb6332e5a4a3cf8296b55d55adfde3b2 100644 (file)
 
 #define ARGPAR_ASSERT(_cond) assert(_cond)
 
-#ifdef __MINGW_PRINTF_FORMAT
-# define ARGPAR_PRINTF_FORMAT __MINGW_PRINTF_FORMAT
-#else
-# define ARGPAR_PRINTF_FORMAT printf
-#endif
-
 /*
  * An argpar iterator.
  *
@@ -288,7 +282,7 @@ int set_error(struct argpar_error ** const error,
 
        if (unknown_opt_name) {
                (*error)->unknown_opt_name = ARGPAR_CALLOC(char,
-                       strlen(unknown_opt_name) + 1 + is_short ? 1 : 2);
+                       strlen(unknown_opt_name) + 1 + (is_short ? 1 : 2));
                if (!(*error)->unknown_opt_name) {
                        goto error;
                }
This page took 0.022078 seconds and 4 git commands to generate.