Skip to content

Commit 7c46b2c

Browse files
committed
apply auto formatting, oh gosh is this horrible
1 parent b49446d commit 7c46b2c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

libs/common/src/System_Win32.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,19 @@ static HRESULT mySHGetKnownFolderPath(REFKNOWNFOLDERID rfid, std::string& path)
6060
gShell32DLLInst = LoadLibraryW(L"Shell32.dll");
6161

6262
#if __GNUC__ >= 9
63-
#pragma GCC diagnostic push
64-
#pragma GCC diagnostic ignored "-Wcast-function-type"
65-
// error: cast between incompatible function types from
66-
// 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'}
67-
// to
68-
// 'LPSHGetKnownFolderPath' {aka 'long int (__attribute__((stdcall)) *)(const GUID&, long unsigned int, void*, wchar_t**)'}
69-
// [-Werror=cast-function-type]
63+
# pragma GCC diagnostic push
64+
# pragma GCC diagnostic ignored "-Wcast-function-type"
65+
// error: cast between incompatible function types from
66+
// 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'}
67+
// to
68+
// 'LPSHGetKnownFolderPath' {aka 'long int (__attribute__((stdcall)) *)(const GUID&, long unsigned int, void*,
69+
// wchar_t**)'}
70+
// [-Werror=cast-function-type]
7071
#endif
7172
if(gShell32DLLInst && !gSHGetKnownFolderPath)
7273
gSHGetKnownFolderPath = (LPSHGetKnownFolderPath)GetProcAddress(gShell32DLLInst, "SHGetKnownFolderPath");
7374
#if __GNUC__ >= 9
74-
#pragma GCC diagnostic pop
75+
# pragma GCC diagnostic pop
7576
#endif
7677

7778
if(gSHGetKnownFolderPath)

0 commit comments

Comments
 (0)