Skip to content
Permalink
Browse files

Take care of a few clang warnings.

  • Loading branch information...
arcum42 committed Jul 6, 2019
1 parent 7c17b9e commit 441e786d3d6139f7b3c29c762dd714cb6551add5
Showing with 4 additions and 2 deletions.
  1. +2 −2 common/include/x86emitter/x86_intrin.h
  2. +2 −0 plugins/GSdx/GSDrawingContext.h
@@ -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));
}
@@ -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"

This comment has been minimized.

Copy link
@lightningterror

lightningterror Jul 9, 2019

Member

It would've been better to isolate it. Maybe with __clang__, otherwise I'm getting unknown pragma warnings.


#include "GS.h"
#include "GSLocalMemory.h"

0 comments on commit 441e786

Please sign in to comment.
You can’t perform that action at this time.