Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
23
Issues
23
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
a39c7f70
Commit
a39c7f70
authored
Apr 13, 2015
by
Jan Včelák
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dnssec] tests: mute warn_unused_result for asprintf
parent
64d9489d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/dnssec/tests/shared_strtonum.c
src/dnssec/tests/shared_strtonum.c
+6
-0
No files found.
src/dnssec/tests/shared_strtonum.c
View file @
a39c7f70
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment