All of lore.kernel.org
 help / color / mirror / Atom feed
* [Powertop] [Warning fixes 2/6] Build with -Wno-unused-result for now, it seems at least some of these cases are intentional (see ml discussion)
@ 2012-08-24 16:53 Joerg Mayer
  0 siblings, 0 replies; 4+ messages in thread
From: Joerg Mayer @ 2012-08-24 16:53 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 906 bytes --]

Note: Is this this flag supported on all compilers?

Signed-off-by: Joerg Mayer <jmpt(a)loplof.de>

diff --git a/src/Makefile.am b/src/Makefile.am
index d233d85..ec70bc4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -33,8 +33,9 @@ powertop_SOURCES = parameters/persistent.cpp parameters/learn.cpp parameters/par
 		main.cpp css.h powertop.css cpu/intel_gpu.cpp
 
 
-powertop_CXXFLAGS = -fno-omit-frame-pointer -fstack-protector -Wall -Wshadow -Wformat $(NCURSES_CFLAGS) $(PCIUTILS_CFLAGS) $(LIBNL_CFLAGS) $(GLIB2_CFLAGS)
-
+powertop_CXXFLAGS = \
+	-fno-omit-frame-pointer -fstack-protector -Wall -Wshadow -Wformat -Wno-unused-result \
+	$(NCURSES_CFLAGS) $(PCIUTILS_CFLAGS) $(LIBNL_CFLAGS) $(GLIB2_CFLAGS)
 
 powertop_CPPFLAGS = -D_FORTIFY_SOURCE=2 $(NCURSES_CFLAGS) $(PCIUTILS_CFLAGS) $(LIBNL_CFLAGS) $(GLIB2_CFLAGS) $(LIBZ_CFLAGS) -DLOCALEDIR=\"$(localedir)\"
 
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Powertop] [Warning fixes 2/6] Build with -Wno-unused-result for now, it seems at least some of these cases are intentional (see ml discussion)
@ 2012-08-24 17:38 Magnus Fromreide
  0 siblings, 0 replies; 4+ messages in thread
From: Magnus Fromreide @ 2012-08-24 17:38 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 244 bytes --]

On Fri, 2012-08-24 at 18:53 +0200, Joerg Mayer wrote:
> Note: Is this this flag supported on all compilers?

Please don't.

If you really mean to ignore the result values then the canonical thing
to do is to cast them to (void)

/MF


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Powertop] [Warning fixes 2/6] Build with -Wno-unused-result for now, it seems at least some of these cases are intentional (see ml discussion)
@ 2012-08-24 17:54 Chris Ferron
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Ferron @ 2012-08-24 17:54 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 604 bytes --]

On 08/24/2012 10:38 AM, Magnus Fromreide wrote:
> On Fri, 2012-08-24 at 18:53 +0200, Joerg Mayer wrote:
>> Note: Is this this flag supported on all compilers?
> Please don't.
>
> If you really mean to ignore the result values then the canonical thing
> to do is to cast them to (void)
Agreed. Also really don't want this as some of the results that are 
being ignored should really be fixed. Meaning wrapped in error handling.
>
> /MF
>
> _______________________________________________
> PowerTop mailing list
> PowerTop(a)lists.01.org
> https://lists.01.org/mailman/listinfo/powertop


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Powertop] [Warning fixes 2/6] Build with -Wno-unused-result for now, it seems at least some of these cases are intentional (see ml discussion)
@ 2012-08-25  7:29 Joerg Mayer
  0 siblings, 0 replies; 4+ messages in thread
From: Joerg Mayer @ 2012-08-25  7:29 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 845 bytes --]

On Fri, Aug 24, 2012 at 10:54:17AM -0700, Chris Ferron wrote:
> On 08/24/2012 10:38 AM, Magnus Fromreide wrote:
> >On Fri, 2012-08-24 at 18:53 +0200, Joerg Mayer wrote:
> >>Note: Is this this flag supported on all compilers?
> >Please don't.
> >
> >If you really mean to ignore the result values then the canonical thing
> >to do is to cast them to (void)
> Agreed. Also really don't want this as some of the results that are
> being ignored should really be fixed. Meaning wrapped in error
> handling.

OK, I expected this part of the patch series to be controversial - so just
skip it.

Thanks
    Jörg
-- 
Joerg Mayer                                           <jmayer(a)loplof.de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-25  7:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-24 17:54 [Powertop] [Warning fixes 2/6] Build with -Wno-unused-result for now, it seems at least some of these cases are intentional (see ml discussion) Chris Ferron
  -- strict thread matches above, loose matches on Subject: below --
2012-08-25  7:29 Joerg Mayer
2012-08-24 17:38 Magnus Fromreide
2012-08-24 16:53 Joerg Mayer

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.