Skip to content

Commit

Permalink
gcc: disable -Wnarrowing via pragma in snd8to16.h
Browse files Browse the repository at this point in the history
  • Loading branch information
th1000s committed Apr 16, 2024
1 parent 97f126d commit 35e7703
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libmve/snd8to16.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma warning(disable : 4245)
#pragma warning(disable : 4309)
#pragma GCC diagnostic ignored "-Wnarrowing"

signed short snd_8to16[256] = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
Expand All @@ -35,5 +36,7 @@ signed short snd_8to16[256] = {
-32, -31, -30, -29, -28, -27, -26, -25, -24, -23, -22, -21, -20, -19,
-18, -17, -16, -15, -14, -13, -12, -11, -10, -9, -8, -7, -6, -5,
-4, -3, -2, -1};

#pragma GCC diagnostic pop
#pragma warning(default : 4245)
#pragma warning(default : 4309)

0 comments on commit 35e7703

Please sign in to comment.