Commit a39c7f70 authored by Jan Včelák's avatar Jan Včelák 🚀

[dnssec] tests: mute warn_unused_result for asprintf

parent 64d9489d
......@@ -14,6 +14,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <stdio.h>
#include <tap/basic.h>
#include <assert.h>
......@@ -55,6 +56,11 @@ static void test_int(const char *in, int expected, int errcode)
(errcode == DNSSEC_EOK ? "succeeds" : "fails"), in);
}
// mute warn_unused_result
#define asprintf(args...) do { \
int r = (asprintf)(args); assert(r >= 0); \
} while (0);
int main(int argc, char *argv[])
{
plan_lazy();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment