Take care of a few clang warnings.

This commit is contained in:
arcum42 2019-07-06 14:16:04 -07:00
parent 7c17b9ef5b
commit 441e786d3d
2 changed files with 4 additions and 2 deletions

View File

@ -70,12 +70,12 @@ static __inline__ __attribute__((always_inline)) unsigned long long xgetbv(unsig
// Rotate instruction
#if defined(__clang__)
// Seriously what is so complicated to provided this bunch of intrinsics in clangs.
static unsigned int _rotr(unsigned int x, int s)
[[maybe_unused]] static unsigned int _rotr(unsigned int x, int s)
{
return (x >> s) | (x << (32 - s));
}
static unsigned int _rotl(unsigned int x, int s)
[[maybe_unused]] static unsigned int _rotl(unsigned int x, int s)
{
return (x << s) | (x >> (32 - s));
}

View File

@ -20,6 +20,8 @@
*/
#pragma once
// Ignore format for this file, as it spams a lot of warnings about uint64 and %llu.
#pragma clang diagnostic ignored "-Wformat"
#include "GS.h"
#include "GSLocalMemory.h"