Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| c77b84f8eb | |||
| 9e9daf956a |
53
asclock-gcc15.patch
Normal file
53
asclock-gcc15.patch
Normal file
@@ -0,0 +1,53 @@
|
||||
--- asclock.h 2025-05-06 06:26:49.442371383 +0000
|
||||
+++ asclock.h 2025-05-06 06:32:27.594886122 +0000
|
||||
@@ -151,9 +151,9 @@ void parseArgs(int argc, char **argv);
|
||||
int read_init(FILE *f);
|
||||
int read_type(int *type);
|
||||
int read_token(char *str, int max);
|
||||
-int read_assign();
|
||||
+int read_assign(void);
|
||||
int read_int(int *ret);
|
||||
-int read_semicolon();
|
||||
+int read_semicolon(void);
|
||||
|
||||
#endif /* ASCLOCK_H */
|
||||
|
||||
--- config.c 2025-05-06 06:26:49.442272713 +0000
|
||||
+++ config.c 2025-05-06 06:33:07.998999146 +0000
|
||||
@@ -147,13 +147,13 @@ int loadTheme(char *themesdir)
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
- if(!read_assign(f))
|
||||
+ if(!read_assign())
|
||||
printf("read_assign failed\n");
|
||||
|
||||
if(!read_int(s->addr))
|
||||
printf("read_int failed\n");
|
||||
|
||||
- if(!read_semicolon(f))
|
||||
+ if(!read_semicolon())
|
||||
printf("read_semicolon failed\n");
|
||||
}
|
||||
|
||||
--- parser.c 2025-05-06 06:26:49.442342036 +0000
|
||||
+++ parser.c 2025-05-06 06:32:42.238851768 +0000
|
||||
@@ -72,7 +72,7 @@ int read_token(char *str, int max)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
-int read_assign()
|
||||
+int read_assign(void)
|
||||
{
|
||||
|
||||
while(next!='=')
|
||||
@@ -106,7 +106,7 @@ int read_int(int *ret)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
-int read_semicolon()
|
||||
+int read_semicolon(void)
|
||||
{
|
||||
|
||||
while(next!=';')
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 6 06:37:24 UTC 2025 - pgajdos@suse.com
|
||||
|
||||
- added patches
|
||||
fix build with gcc15
|
||||
+ asclock-gcc15.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 16 09:42:31 UTC 2024 - Martin Jambor <mjambor@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package asclock
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,6 +26,8 @@ URL: http://www.tigr.net/afterstep/
|
||||
Source: asclock-%{version}.tar.bz2
|
||||
Patch0: gcc4.diff
|
||||
Patch1: asclock-C99.diff
|
||||
# fix build with gcc15
|
||||
Patch2: asclock-gcc15.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: imake
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
Reference in New Issue
Block a user