On a sunny day (Fri, 06 Mar 2020 11:07:05 -0500) it happened Dennis Lee Bieber
wrote in :
>On Fri, 06 Mar 2020 13:52:06 GMT, Jan Panteltje
>declaimed the following:
>
>
>>
>>Pi4 compiler gives a lot of weird warnings, I like clean compiles reads
faster,
>>no idea what this is supposed to mean:
>> /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and
_SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>>
>
> Unless you have different compiler/OS versions running on the various
>machines, I'd expect all R-Pi models to produce the same warnings for the
>same input. What happens if you swap the SD card between the models and
>repeat?
>
> As for the warning itself, I'd suspect the listed include file is
>making use of something like
>
>#ifdef xxxx
>
>referencing either of those two definitions. Though... a quick google shows
>a solution to be in a makefile (for something)
>https://pagure.io/jss/issue/raw/files/18027bfb0e34eebcd4ebbc137c0443e2fdee90d5
394778f0d15fb961c1278cf9-fix4Warnings.patch
>https://stackoverflow.com/questions/29201515/what-does-d-default-source-do
Ah stackoverflow had the right solution:
#define _DEFAULT_SOURCE
did that in the header
Many thanks!
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|