mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
demos: Do not trigger -Wmissing-prototypes for wmain().
For some reason wmain() is not exempted from -Wmissing-prototypes in the same way as main() is. So we just declare a prototype for it.
This commit is contained in:
parent
627cf50320
commit
ede1ff6951
Notes:
Alexandre Julliard
2023-10-02 22:33:40 +02:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/377
@ -888,6 +888,9 @@ static int cxg_main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
/* Do not trigger -Wmissing-prototypes. */
|
||||||
|
int wmain(void);
|
||||||
|
|
||||||
int wmain(void)
|
int wmain(void)
|
||||||
#else
|
#else
|
||||||
int main(void)
|
int main(void)
|
||||||
|
@ -401,6 +401,9 @@ static int cxt_main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
/* Do not trigger -Wmissing-prototypes. */
|
||||||
|
int wmain(void);
|
||||||
|
|
||||||
int wmain(void)
|
int wmain(void)
|
||||||
#else
|
#else
|
||||||
int main(void)
|
int main(void)
|
||||||
|
@ -13,7 +13,7 @@ mkdir build
|
|||||||
cd build
|
cd build
|
||||||
mkdir vulkan-headers
|
mkdir vulkan-headers
|
||||||
cp -r /usr/include/vulkan /usr/include/vk_video /usr/include/spirv vulkan-headers
|
cp -r /usr/include/vulkan /usr/include/vk_video /usr/include/spirv vulkan-headers
|
||||||
../configure --enable-demos --disable-doxygen-doc --without-ncurses --host=$HOST SONAME_LIBVULKAN="vulkan-1.dll" CPPFLAGS="-I$PWD/vulkan-headers" CFLAGS="-g -O2 -Wno-format -Wno-array-bounds -Wno-missing-prototypes -Wno-incompatible-pointer-types -Werror" LDFLAGS="-static-libgcc" && \
|
../configure --enable-demos --disable-doxygen-doc --without-ncurses --host=$HOST SONAME_LIBVULKAN="vulkan-1.dll" CPPFLAGS="-I$PWD/vulkan-headers" CFLAGS="-g -O2 -Wno-format -Wno-array-bounds -Wno-incompatible-pointer-types -Werror" LDFLAGS="-static-libgcc" && \
|
||||||
make -j$(nproc) && \
|
make -j$(nproc) && \
|
||||||
make -j$(nproc) install DESTDIR="$PWD/destdir" || \
|
make -j$(nproc) install DESTDIR="$PWD/destdir" || \
|
||||||
touch ../pipeline_failed
|
touch ../pipeline_failed
|
||||||
|
Loading…
Reference in New Issue
Block a user