summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-12-15 07:51:57 +0000
committerMike Frysinger <vapier@gentoo.org>2009-12-15 07:51:57 +0000
commitfbeb2cf81e923d44d347d000fd265e7a2ed40ecb (patch)
treecba1307253879c0289935712347b263f8276088a /media-video
parentFix circular dependency. (diff)
downloadgentoo-2-fbeb2cf81e923d44d347d000fd265e7a2ed40ecb.tar.gz
gentoo-2-fbeb2cf81e923d44d347d000fd265e7a2ed40ecb.tar.bz2
gentoo-2-fbeb2cf81e923d44d347d000fd265e7a2ed40ecb.zip
Fix implicit function warnings.
(Portage version: 2.2_rc55/cvs/Linux x86_64)
Diffstat (limited to 'media-video')
-rw-r--r--media-video/nvclock/ChangeLog6
-rw-r--r--media-video/nvclock/files/nvclock-0.8_beta4-headers.patch99
-rw-r--r--media-video/nvclock/nvclock-0.8_beta4-r4.ebuild3
3 files changed, 106 insertions, 2 deletions
diff --git a/media-video/nvclock/ChangeLog b/media-video/nvclock/ChangeLog
index 15e0aa1abd45..ad4b41714b0c 100644
--- a/media-video/nvclock/ChangeLog
+++ b/media-video/nvclock/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-video/nvclock
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/nvclock/ChangeLog,v 1.41 2009/09/29 18:44:55 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/nvclock/ChangeLog,v 1.42 2009/12/15 07:51:57 vapier Exp $
+
+ 15 Dec 2009; Mike Frysinger <vapier@gentoo.org>
+ nvclock-0.8_beta4-r4.ebuild, +files/nvclock-0.8_beta4-headers.patch:
+ Fix implicit function warnings.
29 Sep 2009; Jeroen Roovers <jer@gentoo.org> -nvclock-0.7-r2.ebuild,
-nvclock-0.8_beta4-r3.ebuild, -files/callbacks.patch,
diff --git a/media-video/nvclock/files/nvclock-0.8_beta4-headers.patch b/media-video/nvclock/files/nvclock-0.8_beta4-headers.patch
new file mode 100644
index 000000000000..1ec76eea780e
--- /dev/null
+++ b/media-video/nvclock/files/nvclock-0.8_beta4-headers.patch
@@ -0,0 +1,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 */
diff --git a/media-video/nvclock/nvclock-0.8_beta4-r4.ebuild b/media-video/nvclock/nvclock-0.8_beta4-r4.ebuild
index c13d29159e9b..eab1617b75e6 100644
--- a/media-video/nvclock/nvclock-0.8_beta4-r4.ebuild
+++ b/media-video/nvclock/nvclock-0.8_beta4-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/nvclock/nvclock-0.8_beta4-r4.ebuild,v 1.4 2009/09/27 10:50:38 volkmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/nvclock/nvclock-0.8_beta4-r4.ebuild,v 1.5 2009/12/15 07:51:57 vapier Exp $
EAPI="2"
@@ -28,6 +28,7 @@ src_prepare() {
# Bug #240846:
epatch "${FILESDIR}"/${P}-flags.patch
epatch "${FILESDIR}"/${P}-as-needed.patch
+ epatch "${FILESDIR}"/${P}-headers.patch
sed -e 's:NV-CONROL:NV-CONTROL:g' -i configure.in
sed -i Makefile.in -e "s:/share/doc/nvclock:/share/doc/${PF}:g" || \