mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-13 21:22:29 +00:00
Compilation warnings on C++ 11 #337
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cfsmp3 on GitHub (Sep 28, 2017).
../src/ccextractor.cpp:813:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
mprint ( "Teletext decoder: %"PRIu32" packets processed, %"PRIu32" SRT frames written.\n", tlt_packet_counter, tlt_frames_produced);
^
../src/ccextractor.cpp:813:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
mprint ( "Teletext decoder: %"PRIu32" packets processed, %"PRIu32" SRT frames written.\n", tlt_packet_counter, tlt_frames_produced);
^
../src/telxcc.cpp:599:42: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
if (wbout1.fh!=-1) fdprintf(wbout1.fh,"%"PRIu32"\r\n%s --> %s\r\n", tlt_frames_produced, timecode_show, timecode_hide);
^
@mackworth commented on GitHub (Oct 4, 2017):
Oh, man. If you want compiler warnings, there's always been a gazilllion on the mac. (where gazillion is defined as "about 300" currently)
I particularly like the "tautological" ones:
@cfsmp3 commented on GitHub (Oct 9, 2017):
@mackworth where are those warnings? If they are in GPAC or any other library we just borrowed probably not worth it to do anything about it (except update the library), but if they are in our code we should definitely fix them.
@mackworth commented on GitHub (Oct 13, 2017):
So, the errors are generated from api/extractors/extractor.c, src/lib_ccx src/zlib, and src/zvbi
ccextractor Errors.zip
@shucon commented on GitHub (Oct 13, 2017):
@cfsmp3 all the warnings are not eliminated yet , reopen the issue please.
@saurabhshri commented on GitHub (Oct 14, 2017):
@cfsmp3 Please re-open the issue.
Note to the people working on this issue : ff you are building on Linux using the build scripts located inside the
/linux/directory, please use./builddebugfor complete list of warnings being generated.@mackworth commented on GitHub (Jan 11, 2020):
Just as an update, here's the 3,400 lines of compilation warnings on the current master branch when built on the Mac... (Reflecting only 290 actual warnings).
[ccextractorWarnings.txt]
(https://github.com/CCExtractor/ccextractor/files/4048936/ccextractorWarnings.txt)
@NilsIrl commented on GitHub (Jan 13, 2020):
I don't think this is specific to Mac.
On linux I get thousands of lines as well. In fact there are so many warnings that it fills my scrollback buffer.
@cfsmp3 commented on GitHub (Jan 13, 2020):
Many are bogus but there's a few ones that at least show raise some eyebrows:
@NilsIrl commented on GitHub (Jan 13, 2020):
A good proportion of the warnings have to do with ignoring the return value of
write.@cfsmp3 commented on GitHub (Jan 16, 2020):
Maybe we should just disable that specific warning and move on. I don't want to fill the code casts to void or replace calls to write to a function that does the cast, etc.
@NilsIrl commented on GitHub (Jan 18, 2020):
I thing it's a good thing that we try to fix compilation warnings because if there are too many warnings (like it is currently), then we just ignore the warnings which can sometimes help
@cfsmp3 commented on GitHub (Jan 18, 2020):
Yes but some warnings are just overkill. Ignoring the return of a function when you're only interested in its secondary effect is totally normal.
@hv7214 commented on GitHub (Feb 8, 2020):
@cfsmp3 i don't see any warnings when built on linux. Is this solved for Linux systems ?
@canihavesomecoffee commented on GitHub (Feb 8, 2020):
It's heavily dependent on your used compiler version and other parameters, but they're for sure not all fixed yet.
@hv7214 commented on GitHub (Feb 8, 2020):
oh i see! yeah i'm using C++14.
@cfsmp3 commented on GitHub (Nov 21, 2021):
Closing as I don't see warnings on master now.
@mackworth commented on GitHub (Nov 21, 2021):
Just FYI, although they are much less problematic, I still see 397 errors during compilation on my Mac.
Almost all are
-Wpointer-signwarnings with many different specific types, but a sample is:There's also 8
-Wself-assignwarnings such asand a handful of others: