[Git][NTPsec/ntpsec][master] int_lib(): remove attribute(const)

Gary E. Miller gitlab at mg.gitlab.com
Sat Apr 15 02:54:44 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
971f0c06 by Gary E. Miller at 2017-04-14T19:54:03-07:00
int_lib(): remove attribute(const)

Oddly this prototype, for an empty function, breaks clang on macOS.

init_lib        (void) __attribute__((const));

- - - - -


1 changed file:

- include/ntp_stdlib.h


Changes:

=====================================
include/ntp_stdlib.h
=====================================
--- a/include/ntp_stdlib.h
+++ b/include/ntp_stdlib.h
@@ -55,7 +55,7 @@ extern	bool	authusekey	(keyid_t, int, const uint8_t *);
 extern	const char *clockname	(int);
 extern	int	clocktime	(int, int, int, int, int, uint32_t, uint32_t *, uint32_t *);
 extern	void	init_auth	(void);
-extern	void	init_lib	(void) __attribute__((const));
+extern	void	init_lib	(void);
 extern	void	init_network	(void);
 extern	void	auth_moremem	(int);
 extern	void	auth_prealloc_symkeys(int);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/971f0c060399dd6c22df44d766c3b560361a7048

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/971f0c060399dd6c22df44d766c3b560361a7048
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170415/bcb5f79b/attachment.html>


More information about the vc mailing list