* compilation failure on GNU/Linux: CVS HEAD
@ 2008-03-10 5:21 dhruva
2008-03-10 8:11 ` Jan Djärv
0 siblings, 1 reply; 2+ messages in thread
From: dhruva @ 2008-03-10 5:21 UTC (permalink / raw)
To: Emacs Devel
Hello,
For some reason, my build of CVS Emacs fails on GNU/Linux. Following
are the OS/HW details.
$uname -srvmpio
Linux 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686
i386 GNU/Linux
$ gcc --version
2.95.1g
The following trivial patch fixes the issue!
bash-3.00$ cvs diff
cvs diff: Diffing .
Index: fontset.c
===================================================================
RCS file: /sources/emacs/emacs/src/fontset.c,v
retrieving revision 1.115
diff -p -u -w -B -r1.115 fontset.c
--- fontset.c 26 Feb 2008 18:18:04 -0000 1.115
+++ fontset.c 10 Mar 2008 05:15:56 -0000
@@ -2245,7 +2245,7 @@ fontset. The format is the same as abob
{
struct font *font
= XSAVE_VALUE (font_object)->pointer;
- char *name = font->font.full_name;;
+ char *name = font->font.full_name;
int len = strlen (name);
Lisp_Object slot;
Index: sound.c
===================================================================
RCS file: /sources/emacs/emacs/src/sound.c,v
retrieving revision 1.47
diff -p -u -w -B -r1.47 sound.c
--- sound.c 8 Jan 2008 20:44:27 -0000 1.47
+++ sound.c 10 Mar 2008 05:16:02 -0000
@@ -1105,9 +1105,9 @@ alsa_configure (sd)
{
if (snd_mixer_selem_has_playback_volume (e))
{
- long pmin, pmax;
+ long pmin, pmax, vol;
snd_mixer_selem_get_playback_volume_range (e,
&pmin, &pmax);
- long vol = pmin + (sd->volume * (pmax - pmin)) / 100;
+ vol = pmin + (sd->volume * (pmax - pmin)) / 100;
for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++)
snd_mixer_selem_set_playback_volume (e, chn, vol);
--
Contents reflect my personal views only!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: compilation failure on GNU/Linux: CVS HEAD
2008-03-10 5:21 compilation failure on GNU/Linux: CVS HEAD dhruva
@ 2008-03-10 8:11 ` Jan Djärv
0 siblings, 0 replies; 2+ messages in thread
From: Jan Djärv @ 2008-03-10 8:11 UTC (permalink / raw)
To: dhruva; +Cc: Emacs Devel
dhruva skrev:
> Hello,
> For some reason, my build of CVS Emacs fails on GNU/Linux. Following
> are the OS/HW details.
>
> $uname -srvmpio
> Linux 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686
> i386 GNU/Linux
> $ gcc --version
> 2.95.1g
>
> The following trivial patch fixes the issue!
Applied, thanks.
Jan D.
>
> bash-3.00$ cvs diff
> cvs diff: Diffing .
> Index: fontset.c
> ===================================================================
> RCS file: /sources/emacs/emacs/src/fontset.c,v
> retrieving revision 1.115
> diff -p -u -w -B -r1.115 fontset.c
> --- fontset.c 26 Feb 2008 18:18:04 -0000 1.115
> +++ fontset.c 10 Mar 2008 05:15:56 -0000
> @@ -2245,7 +2245,7 @@ fontset. The format is the same as abob
> {
> struct font *font
> = XSAVE_VALUE (font_object)->pointer;
> - char *name = font->font.full_name;;
> + char *name = font->font.full_name;
> int len = strlen (name);
> Lisp_Object slot;
>
> Index: sound.c
> ===================================================================
> RCS file: /sources/emacs/emacs/src/sound.c,v
> retrieving revision 1.47
> diff -p -u -w -B -r1.47 sound.c
> --- sound.c 8 Jan 2008 20:44:27 -0000 1.47
> +++ sound.c 10 Mar 2008 05:16:02 -0000
> @@ -1105,9 +1105,9 @@ alsa_configure (sd)
> {
> if (snd_mixer_selem_has_playback_volume (e))
> {
> - long pmin, pmax;
> + long pmin, pmax, vol;
> snd_mixer_selem_get_playback_volume_range (e,
> &pmin, &pmax);
> - long vol = pmin + (sd->volume * (pmax - pmin)) / 100;
> + vol = pmin + (sd->volume * (pmax - pmin)) / 100;
>
> for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++)
> snd_mixer_selem_set_playback_volume (e, chn, vol);
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-10 8:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-10 5:21 compilation failure on GNU/Linux: CVS HEAD dhruva
2008-03-10 8:11 ` Jan Djärv
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.