Skip to content

Commit

Permalink
libtraceevent: Fix compiler warnings re: asprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo authored and mikesart committed Jul 28, 2022
1 parent fd94726 commit 2cd26ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libtraceevent/src/event-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ extern char *strtok_r(char *str, const char *delim, char **saveptr);
#define s6_addr32 __u6_addr.__u6_addr32
#endif /* __APPLE__ */
#endif /* _WIN32 */

/* gpuvis change! See gpuvis_utils.cpp */
int asprintf(char **str, const char *fmt, ...);

#include "event-parse.h"

#include "event-parse-local.h"
Expand Down
3 changes: 3 additions & 0 deletions src/libtraceevent/src/event-plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#include "event-utils.h"
#include "trace-seq.h"

/* gpuvis change! See gpuvis_utils.cpp */
int asprintf(char **str, const char *fmt, ...);

#define LOCAL_PLUGIN_DIR ".local/lib/traceevent/plugins/"

static struct registered_plugin_options {
Expand Down

0 comments on commit 2cd26ef

Please sign in to comment.