HalosGhost / pbpst

A command-line libcurl C client for pb deployments
GNU General Public License v2.0
44 stars 9 forks source link

Errors on use of stderr #79

Closed HalosGhost closed 7 years ago

HalosGhost commented 7 years ago

https://ptpb.pw/hVCd.png

tmplt commented 7 years ago

In case it helps, latest HEAD builds without issue on my system with clang 3.9.1.

HalosGhost commented 7 years ago

Interesting. I will look into this more and see what I can see.

HalosGhost commented 7 years ago

@oatberry, can you add some more information here?

HalosGhost commented 7 years ago

Okay, I believe I have this figured out. C89 and C99 specify that stdout, stdin and stderr are macros. But, because of how these macros are defined in musl libc, the compiler detects a recursive macro expansion.

I think it is safe to say that these issues are common enough and uninteresting enough that we should probably whole-sale disable this warning.

HalosGhost commented 7 years ago

via 657cde14ae4e18df8c90f72b2cba04ecad326154