Browse Source

Fixed warnings in native test code.

typeloc_clang
Joao Matos 6 years ago committed by João Matos
parent
commit
7fedac2740
  1. 3
      tests/Common/Common.h
  2. 5
      tests/Tests.h

3
tests/Common/Common.h

@ -47,6 +47,7 @@ public: @@ -47,6 +47,7 @@ public:
TestPacking8();
~TestPacking8();
};
#pragma pack()
class DLL_API IgnoredType
{
@ -611,7 +612,7 @@ class DLL_API HasOverridenSetter : public TestProperties @@ -611,7 +612,7 @@ class DLL_API HasOverridenSetter : public TestProperties
{
public:
HasOverridenSetter();
void setVirtual(bool value);
void setVirtual(bool value) override;
int virtualSetterReturnsBoolean() override;
bool setVirtualSetterReturnsBoolean(int value) override;

5
tests/Tests.h

@ -14,7 +14,12 @@ @@ -14,7 +14,12 @@
#define DLL_API __attribute__ ((visibility ("default")))
#ifndef STDCALL
#if defined(WINDOWS)
#define STDCALL __attribute__((stdcall))
#else
// warning: calling convention 'stdcall' ignored for this target [-Wignored-attributes]
#define STDCALL
#endif
#endif
#ifndef CDECL

Loading…
Cancel
Save