Avoid the " map_to_assuan_status called with no error source" diagnostic.
[gnupg.git] / agent / agent.h
index 8112c25..7ff6925 100644 (file)
@@ -26,6 +26,8 @@
 #endif
 #define GPG_ERR_SOURCE_DEFAULT  GPG_ERR_SOURCE_GPGAGENT
 #include <gpg-error.h>
+#define map_assuan_err(a) \
+        map_assuan_err_with_source (GPG_ERR_SOURCE_DEFAULT, (a))
 #include <errno.h>
 
 #include <gcrypt.h>