lkml.org 
[lkml]   [2012]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [patch] perf: Fix build failure on OpenSuse userspace
    Date
    Hi,

    On Fri, 4 May 2012 17:02:11 +0200, Jiri Olsa wrote:
    >> So I doubt -Wno-unused-parameter will do any good here.
    > I think we need also -Wno-sign-compare, please check the attached patch
    >
    >
    > ---
    > diff --git a/tools/perf/Makefile b/tools/perf/Makefile
    > index 7055a00..8f7b6cf 100644
    > --- a/tools/perf/Makefile
    > +++ b/tools/perf/Makefile
    > @@ -729,10 +729,10 @@ $(OUTPUT)perf.o perf.spec \
    > # over the general rule for .o
    >
    > $(OUTPUT)util/%-flex.o: $(OUTPUT)util/%-flex.c $(OUTPUT)PERF-CFLAGS
    > - $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -Iutil/ -Wno-redundant-decls -Wno-switch-default -Wno-unused-function $<
    > + $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -Iutil/ -Wno-redundant-decls -Wno-switch-default -Wno-unused-function -Wno-unused-parameter -Wno-sign-compare $<
    >

    s/unused-parameter/unused-result/ ?

    Thanks,
    Namhyung


    > $(OUTPUT)util/%-bison.o: $(OUTPUT)util/%-bison.c $(OUTPUT)PERF-CFLAGS
    > - $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -Iutil/ -Wno-redundant-decls -Wno-switch-default -Wno-unused-function $<
    > + $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -Iutil/ -Wno-redundant-decls -Wno-switch-default -Wno-unused-function -Wno-unused-parameter -Wno-sign-compare $<
    >
    > $(OUTPUT)%.o: %.c $(OUTPUT)PERF-CFLAGS
    > $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $<


    \
     
     \ /
      Last update: 2012-05-04 17:41    [W:0.023 / U:210.888 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site