1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
bios.c: In function ‘dump_bios’:
bios.c:909: warning: implicit declaration of function ‘load_bios_pramin’
bios.c:911: warning: implicit declaration of function ‘load_bios_prom’
diff --git a/src/backend/bios.c b/src/backend/bios.c
index 3266b57..20fadc8 100644
--- a/src/backend/bios.c
+++ b/src/backend/bios.c
@@ -891,6 +891,8 @@ int main(int argc, char **argv)
#else
+int load_bios_pramin(char *data);
+int load_bios_prom(char *data);
void dump_bios(const char *filename)
{
int i;
libc_wrapper.c: In function ‘xf86usleep’:
libc_wrapper.c:53: warning: implicit declaration of function ‘usleep’
diff --git a/src/backend/libc_wrapper.c b/src/backend/libc_wrapper.c
index 4787205..9e490cd 100644
--- a/src/backend/libc_wrapper.c
+++ b/src/backend/libc_wrapper.c
@@ -25,6 +25,7 @@
*
*/
+#include <config.h>
#include <stdio.h>
#include "xfree.h"
nv40.c: In function ‘nv43_get_gpu_temp’:
nv40.c:393: warning: implicit declaration of function ‘usleep’
diff --git a/src/backend/nv40.c b/src/backend/nv40.c
index 73472fa..63c9609 100644
--- a/src/backend/nv40.c
+++ b/src/backend/nv40.c
@@ -68,6 +68,7 @@
#include <stdio.h>
#include <string.h>
+#include <unistd.h>
#include "backend.h"
/*
banner.c: In function ‘banner_set_text’:
banner.c:115: warning: format not a string literal and no format arguments
diff --git a/src/gtk/banner.c b/src/gtk/banner.c
index df2eb55..69851ae 100644
--- a/src/gtk/banner.c
+++ b/src/gtk/banner.c
@@ -112,7 +112,7 @@ void banner_set_text(Banner *banner, char *text, int type)
if(banner->text)
g_free(banner->text);
- banner->text = g_strdup_printf(text);
+ banner->text = g_strdup(text);
banner->type = type;
/* Refresh the banner */
banner_expose(GTK_WIDGET(banner), NULL, banner);
main.c: In function ‘gui_init’:
main.c:235: warning: implicit declaration of function ‘XOpenDisplay’
main.c:235: warning: cast to pointer from integer of different size
diff --git a/src/gtk/main.c b/src/gtk/main.c
index b3bbacb..df7e5b1 100644
--- a/src/gtk/main.c
+++ b/src/gtk/main.c
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <gtk/gtk.h>
+#include <X11/Xlib.h>
#include "banner.h"
#include "interface.h"
smartdimmer.c: In function ‘main’:
smartdimmer.c:107: warning: implicit declaration of function ‘isdigit’
diff --git a/src/smartdimmer.c b/src/smartdimmer.c
index 295cd49..769c1bc 100644
--- a/src/smartdimmer.c
+++ b/src/smartdimmer.c
@@ -38,6 +38,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
+#include <ctype.h>
#include "nvclock.h"
/* for command line arguments */
|