Avoid the " map_to_assuan_status called with no error source" diagnostic.
[gnupg.git] / sm / gpgsm.h
index fe4e939..17ad21e 100644 (file)
@@ -26,6 +26,9 @@
 #endif
 #define GPG_ERR_SOURCE_DEFAULT  GPG_ERR_SOURCE_GPGSM
 #include <gpg-error.h>
+#define map_assuan_err(a) \
+        map_assuan_err_with_source (GPG_ERR_SOURCE_DEFAULT, (a))
+
 
 #include <ksba.h>
 #include "../common/util.h"