mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Fix the build with Clang.
Submitted by: Cyril Roelandt
This commit is contained in:
parent
057a0425ca
commit
94530ad400
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=290163
27
games/qcc/files/patch-qcc.c
Normal file
27
games/qcc/files/patch-qcc.c
Normal file
@ -0,0 +1,27 @@
|
||||
--- qcc.c.orig 2012-01-31 16:40:51.000000000 +0800
|
||||
+++ qcc.c 2012-01-31 16:41:46.000000000 +0800
|
||||
@@ -1025,7 +1025,7 @@
|
||||
main
|
||||
============
|
||||
*/
|
||||
-void main (int argc, char **argv)
|
||||
+int main (int argc, char **argv)
|
||||
{
|
||||
char *src;
|
||||
char *src2;
|
||||
@@ -1043,7 +1043,7 @@
|
||||
printf ("to build a clean data tree: qcc -copy <srcdir> <destdir>\n");
|
||||
printf ("to build a clean pak file: qcc -pak <srcdir> <packfile>\n");
|
||||
printf ("to bsp all bmodels: qcc -bspmodels <gamedir>\n");
|
||||
- return;
|
||||
+ return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
p = CheckParm ("-src");
|
||||
@@ -1112,4 +1112,6 @@
|
||||
|
||||
// report / copy the data files
|
||||
CopyFiles ();
|
||||
+
|
||||
+ return EXIT_SUCCESS;
|
||||
}
|
Loading…
Reference in New Issue
Block a user