Browse Source

Fixed warnings in native test code.

typeloc_clang
Joao Matos 7 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:
TestPacking8(); TestPacking8();
~TestPacking8(); ~TestPacking8();
}; };
#pragma pack()
class DLL_API IgnoredType class DLL_API IgnoredType
{ {
@ -611,7 +612,7 @@ class DLL_API HasOverridenSetter : public TestProperties
{ {
public: public:
HasOverridenSetter(); HasOverridenSetter();
void setVirtual(bool value); void setVirtual(bool value) override;
int virtualSetterReturnsBoolean() override; int virtualSetterReturnsBoolean() override;
bool setVirtualSetterReturnsBoolean(int value) override; bool setVirtualSetterReturnsBoolean(int value) override;

5
tests/Tests.h

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

Loading…
Cancel
Save