Skip to content

Commit

Permalink
8345757: [ASAN] clang17 report dprintf macro redefined
Browse files Browse the repository at this point in the history
  • Loading branch information
sendaoYan committed Dec 8, 2024
1 parent c517ffb commit c6c8c66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/java.smartcardio/share/native/libj2pcsc/pcsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#define dprintf2(s, p1, p2) printf(s, p1, p2)
#define dprintf3(s, p1, p2, p3) printf(s, p1, p2, p3)
#else
#undef dprintf
#define dprintf(s)
#define dprintf1(s, p1)
#define dprintf2(s, p1, p2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ void *p11FindFunction(JNIEnv *env, jlong jHandle, const char *functionName);
#define dprintf2(s, p1, p2) printf(s, p1, p2)
#define dprintf3(s, p1, p2, p3) printf(s, p1, p2, p3)
#else
#undef dprintf
#define dprintf(s)
#define dprintf1(s, p1)
#define dprintf2(s, p1, p2)
Expand Down

0 comments on commit c6c8c66

Please sign in to comment.