Skip to content

Make xbanish C99 compliant#70

Open
iacore wants to merge 3 commits intojcs:masterfrom
iacore:master
Open

Make xbanish C99 compliant#70
iacore wants to merge 3 commits intojcs:masterfrom
iacore:master

Conversation

@iacore
Copy link

@iacore iacore commented Apr 12, 2022

No description provided.

xbanish.c Outdated

#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Intrinsic.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I remember getting a failed compilation report due to this. It includes the header but doesn't actually link against the library.
https://bugs.gentoo.org/806258#c3

* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#define _POSIX_C_SOURCE 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it's better to define feature test macros in the Makefile under CPPFLAGS variable. But since it's a single file source, probably doesn't matter much.

jcs added a commit that referenced this pull request Apr 13, 2022
@N-R-K
Copy link
Contributor

N-R-K commented Apr 13, 2022

@jcs Regarding a7ebe36 : <signal.h> is also unused, was included in 725c614. I assume that was because @Ckath's original implementation was using alarm instead of the XSync* functions.

@Ckath
Copy link
Contributor

Ckath commented Apr 13, 2022

damn, and I remember going over the diff multiple times making sure I didnt accidentally pull in more junk after writing out the original alarm related signal mess. shame. must've steered too much on suggested changes

iacore and others added 2 commits April 18, 2022 17:11
Co-authored-by: N-R-K <nrk@disroot.org>
@iacore
Copy link
Author

iacore commented Apr 18, 2022

Should be fine to merge now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants