Skip to content

Commit

Permalink
Build: suppress recent clang warnings for sprintf in C++ code (#149)
Browse files Browse the repository at this point in the history
* suppress deprecated sprintf warning on clang

* Suppress GCC being annoyed about clang pragma

* revert Makefile changes

* qualify clang pragma with clang #if

---------

Co-authored-by: Xark <[email protected]>
  • Loading branch information
XarkLabs and XarkLabs authored Jul 24, 2023
1 parent 0016ceb commit 4238a4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/extern/ymfm/src/ymfm.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
#define _CRT_SECURE_NO_WARNINGS
#endif

#if defined(__clang__)
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif

#include <cassert>
#include <cstdint>
#include <cstdio>
Expand Down

0 comments on commit 4238a4a

Please sign in to comment.