is great news.
encoding capabilities into the core.
Post by Henric JungheimThat goes for Windows too.
In the meantime, turning certain things into errors is one
way of making sure they aren't ignored. In the particular
example mentioned here, gcc should add -Werror=return-type
(IIRC) and MSVC should treat C4716 as an error (/We4716 or
add 4716 to the "Treat Specific Warnings as Errors" box).
-- shadowed names (C4458, C4457, C4456; -Wshadow was a bit
noisy in older versions of GCC)
-- possibly uninitialized variable (C4701, C4703)
-- Windows specific: inconsistent DLL linkage (C4273)
-- incompatible types (C4133)
Perhaps unreferenced variables should be errors as well
(C4101, C4189)? There will be some false positives, but it
is usually trivial to avoid them (set to 0 or nullptr).
Even if there is no intent at using or even supporting a
bleeding edge compiler, their diagnostics can be useful.
g++ 7.1 (or even the 8 preview) may have interesting things
to say about the code.
Beyond the normal compiler yammering, Coverity has a long
list of things that is probably worth looking at (I sent a
note to this list about one issue that I believe is legit,
but I'm haven't looked at how to fix) and enabling the
full-on Visual Studio Code Analysis threw up over 13k
warnings (no, I haven't read through them).
Dealing with this in the Audacity source is difficult enough,
but what about the various lib-src libraries? The
"audacity-patches.txt" file seems like the place for any
such per-library support policy notes (there is already
some stuff along those lines).
BTW, since the lame patents are no longer a problem, should
the implementation be in lib-src?
On Tue, Jul 11, 2017 at 1:38 PM, Steve the Fiddle
Post by Steve the FiddleA good start on Linux would be to fix the compiler warnings that we
already have. That would make it much easier to spot and fix new
compiler warnings.
Steve
Ditto XCode. I was preparing a sweep of certain common warnings for
2.1.3. But it didn't get in then, and I would have much rebasing work to
do now.
PRL
Post by Steve the FiddlePost by Paul LicameliIt is good to help the compiler help you avoid all sorts of stupid little
mistakes. I make my share of them.
Some of the recent crashes on Windows that were my fault happened
because a
Post by Paul Licamelinon-void function (in fact, a lambda expression) had a path returning no
value, which on Windows debug but not on Mac, returned a garbage pointer.
Shouldn't the compiler have nabbed this early? It didn't, on Travis, or
Mac, or the Windows build. I see Windows IntelliSense noticed the error,
but the build did not fail.
At commit e3ea42ff7ec69c80d8c5dac40aa114996f68c9c2 I changed the Mac
XCode
Post by Paul Licameliproject so that this warning is treated as an error and breaks the
build, at
Post by Paul Licamelileast as I do it with XCode.
This does something to raise the bar for correct code.
Is there a gcc equivalent that can be added to Linux builds? Who, more
adept than I at Linux development, can make such a change?
Are there other warning conditions you want to nominate for treatment as
errors?
PRL
------------------------------------------------------------
------------------
Post by Paul LicameliCheck out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel