[Git][NTPsec/ntpsec][master] Address GitLab issue #274: functions fail to inline
Eric S. Raymond
gitlab at mg.gitlab.com
Fri May 5 13:04:17 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
8675d7dd by Eric S. Raymond at 2017-05-05T09:00:04-04:00
Address GitLab issue #274: functions fail to inline
The -Winline option produce two warnings that are (probably correctly)
indicating that inlining normalize_tspec() and dtolfp() is inefficient.
I judge that it's not worth the hassle of reorganizing the code to fix
these, so we'll just tell the compiler to stifle.
- - - - -
1 changed file:
- wscript
Changes:
=====================================
wscript
=====================================
--- a/wscript
+++ b/wscript
@@ -315,7 +315,6 @@ def configure(ctx):
('w_format_signedness', '-Wformat-signedness'),
('w_implicit_function_declaration', "-Wimplicit-function-declaration"),
('w_init_self', '-Winit-self'),
- ('w_inline', '-Winline'),
('w_invalid_pch', '-Winvalid-pch'),
('w_missing_declarations', '-Wmissing-declarations'),
('w_multichar', '-Wmultichar'),
@@ -451,8 +450,6 @@ int main(int argc, char **argv) {
ctx.env.CFLAGS = ['-Wfloat-equal'] + ctx.env.CFLAGS
if ctx.env.HAS_w_init_self:
ctx.env.CFLAGS = ['-Winit-self'] + ctx.env.CFLAGS
- if ctx.env.HAS_w_inline:
- ctx.env.CFLAGS = ['-Winline'] + ctx.env.CFLAGS
if ctx.env.HAS_w_write_strings:
ctx.env.CFLAGS = ['-Wwrite-strings'] + ctx.env.CFLAGS
if ctx.env.HAS_w_pointer_arith:
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/8675d7ddc0f95337a92b1348578f7ccf6a38617e
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/8675d7ddc0f95337a92b1348578f7ccf6a38617e
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/20170505/ad1fc10f/attachment.html>
More information about the vc
mailing list