Skip to content

Commit

Permalink
sound/pci/hda/patch_via.c: work around gcc-4.0.2 ICE
Browse files Browse the repository at this point in the history
sound/pci/hda/patch_via.c: In function 'via_hp_bind_automute':
sound/pci/hda/patch_via.c:2074: internal compiler error: in do_SUBST, at combine.c:462
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

[added a comment by tiwai]

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
akpm@linux-foundation.org authored and Takashi Iwai committed Nov 14, 2009
1 parent 7288561 commit 01a1796
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -2043,7 +2043,10 @@ static void via_speaker_automute(struct hda_codec *codec)
/* mute line-out and internal speaker if HP is plugged */
static void via_hp_bind_automute(struct hda_codec *codec)
{
unsigned int hp_present, present = 0;
/* use long instead of int below just to avoid an internal compiler
* error with gcc 4.0.x
*/
unsigned long hp_present, present = 0;
struct via_spec *spec = codec->spec;
int i;

Expand Down

0 comments on commit 01a1796

Please sign in to comment.