Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Conversation

shr-project
Copy link

  • fixes build with -Werror=return-type
    twofish.c: In function 'init_twofish':
    twofish.c:45:1: error: control reaches end of non-void function [-Werror=return-type]
    45 | PyMODINIT_FUNC init_twofish(void) { }
    | ^~~~~~~~~~~~~~
    twofish.c: In function 'PyInit__twofish':
    twofish.c:46:1: error: control reaches end of non-void function [-Werror=return-type]
    46 | PyMODINIT_FUNC PyInit__twofish(void) { }
    | ^~~~~~~~~~~~~~
    cc1: some warnings being treated as errors

Signed-off-by: Martin Jansa [email protected]

* fixes build with -Werror=return-type
  twofish.c: In function 'init_twofish':
  twofish.c:45:1: error: control reaches end of non-void function [-Werror=return-type]
     45 | PyMODINIT_FUNC init_twofish(void) { }
        | ^~~~~~~~~~~~~~
  twofish.c: In function 'PyInit__twofish':
  twofish.c:46:1: error: control reaches end of non-void function [-Werror=return-type]
     46 | PyMODINIT_FUNC PyInit__twofish(void) { }
        | ^~~~~~~~~~~~~~
  cc1: some warnings being treated as errors

Signed-off-by: Martin Jansa <[email protected]>
flowergom pushed a commit to webosose/meta-webosose that referenced this pull request Oct 21, 2019
:Release Notes:
Like oe-core/meta/conf/distro/include/security_flags.inc does.

:Detailed Notes:
This way it gets applied to all builds which respect at least CC even
when they don't respect CFLAGS/CXXFLAGS set in OE environment.

Remove the whitelist for python3-twisted, it didn't work, because
it still got -Werror=return-type from python3 config and it was fixed
properly in:
keybase/python-twofish#6
http://lists.openembedded.org/pipermail/openembedded-devel/2019-August/201118.html
and drop redis as well, with proper fix here:
http://lists.openembedded.org/pipermail/openembedded-devel/2019-August/201116.html

:Testing Performed:

:QA Notes:

:Issues Addressed:
[PLAT-79213] Missing return statements from non-void functions
[PLAT-84440] CCC: Various build fixes

Change-Id: If997b648f42ae02091b97053a51eeb462f561c7e
shr-project added a commit to shr-project/meta-webosose that referenced this pull request Oct 21, 2019
:Release Notes:
Like oe-core/meta/conf/distro/include/security_flags.inc does.

:Detailed Notes:
This way it gets applied to all builds which respect at least CC even
when they don't respect CFLAGS/CXXFLAGS set in OE environment.

Remove the whitelist for python3-twisted, it didn't work, because
it still got -Werror=return-type from python3 config and it was fixed
properly in:
keybase/python-twofish#6
http://lists.openembedded.org/pipermail/openembedded-devel/2019-August/201118.html
and drop redis as well, with proper fix here:
http://lists.openembedded.org/pipermail/openembedded-devel/2019-August/201116.html

:Testing Performed:

:QA Notes:

:Issues Addressed:
[PLAT-79213] Missing return statements from non-void functions
[PLAT-84440] CCC: Various build fixes

Change-Id: If997b648f42ae02091b97053a51eeb462f561c7e
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant