Discussion:
Deprecated warnings
Boris Mulder
2017-02-06 15:58:31 UTC
Permalink
Hi all,

Whenever I compile my source with the latest version of Genode, I am
getting hundreds and hundreds of deprecated warnings. I understand you
might fix them in the future, but they clog my compiler output and make
reading other compiler errors a pain. Is there some easy point in the
makefiles where I can change it so that I can disable all of them
temporarily? I tried appending it to global.mk:

CC_WARN ?= -Wall -Wno-deprecated

but this still gave me the warnings. Where can I disable it?

Regards,

Boris
--
Met vriendelijke groet / kind regards,

Boris Mulder

Cyber Security Labs B.V. | Gooimeer 6-31 | 1411 DD Naarden | The Netherlands
+31 35 631 3253 (office)
Martin Stein
2017-02-06 17:49:30 UTC
Permalink
Hi Boris,

You have to add the line 'CC_OPT += -Wno-deprecated-declarations' to
your '<BUILD_DIR>/etc/tools.conf'. You probably have to create this file
first.

Did that help you?

Cheers,
Martin
Post by Boris Mulder
Hi all,
Whenever I compile my source with the latest version of Genode, I am
getting hundreds and hundreds of deprecated warnings. I understand you
might fix them in the future, but they clog my compiler output and make
reading other compiler errors a pain. Is there some easy point in the
makefiles where I can change it so that I can disable all of them
CC_WARN ?= -Wall -Wno-deprecated
but this still gave me the warnings. Where can I disable it?
Regards,
Boris
Boris Mulder
2017-02-07 08:15:59 UTC
Permalink
This fixes most of the warnings, but some still persist (from -Wcpp).

It is workable now though.
Post by Martin Stein
Hi Boris,
You have to add the line 'CC_OPT += -Wno-deprecated-declarations' to
your '<BUILD_DIR>/etc/tools.conf'. You probably have to create this file
first.
Did that help you?
Cheers,
Martin
Post by Boris Mulder
Hi all,
Whenever I compile my source with the latest version of Genode, I am
getting hundreds and hundreds of deprecated warnings. I understand you
might fix them in the future, but they clog my compiler output and make
reading other compiler errors a pain. Is there some easy point in the
makefiles where I can change it so that I can disable all of them
CC_WARN ?= -Wall -Wno-deprecated
but this still gave me the warnings. Where can I disable it?
Regards,
Boris
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
genode-main mailing list
https://lists.sourceforge.net/lists/listinfo/genode-main
--
Met vriendelijke groet / kind regards,

Boris Mulder

Cyber Security Labs B.V. | Gooimeer 6-31 | 1411 DD Naarden | The Netherlands
+31 35 631 3253 (office)
Martin Stein
2017-02-07 12:33:59 UTC
Permalink
Hi Boris,
Post by Boris Mulder
This fixes most of the warnings, but some still persist (from -Wcpp).
Post by Martin Stein
You have to add the line 'CC_OPT += -Wno-deprecated-declarations' to
your '<BUILD_DIR>/etc/tools.conf'. You probably have to create this file
first.
Of course you can add further 'c++' options like '-Wno-cpp' to the
'CC_OPT' variable your 'tools.conf' file ;)

Cheers,
Martin

Continue reading on narkive:
Loading...