Skip to content

Commit 7fedac2

Browse files
committed
Fixed warnings in native test code.
1 parent 5e0e19e commit 7fedac2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/Common/Common.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class DLL_API TestPacking8: public TestPacking
4747
TestPacking8();
4848
~TestPacking8();
4949
};
50+
#pragma pack()
5051

5152
class DLL_API IgnoredType
5253
{
@@ -611,7 +612,7 @@ class DLL_API HasOverridenSetter : public TestProperties
611612
{
612613
public:
613614
HasOverridenSetter();
614-
void setVirtual(bool value);
615+
void setVirtual(bool value) override;
615616

616617
int virtualSetterReturnsBoolean() override;
617618
bool setVirtualSetterReturnsBoolean(int value) override;

tests/Tests.h

+5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
#define DLL_API __attribute__ ((visibility ("default")))
1515

1616
#ifndef STDCALL
17+
#if defined(WINDOWS)
1718
#define STDCALL __attribute__((stdcall))
19+
#else
20+
// warning: calling convention 'stdcall' ignored for this target [-Wignored-attributes]
21+
#define STDCALL
22+
#endif
1823
#endif
1924

2025
#ifndef CDECL

0 commit comments

Comments
 (0)