Thanks to visit codestin.com
Credit goes to github.com

Skip to content

s2n compilation on CentOS 6.5 with gcc 4.4.7 fails #171

@sudhagarc

Description

@sudhagarc

Build OS: CentOS 6.5
GCC version: 4.4.7

Compilation of s2n fails with following error:
-- 8< --
s2n_connection.c: In function ‘s2n_connection_wipe’:
s2n_connection.c:195: error: #pragma GCC diagnostic not allowed inside functions
s2n_connection.c:196: error: #pragma GCC diagnostic not allowed inside functions
s2n_connection.c:204: error: #pragma GCC diagnostic not allowed inside functions
make[1]: *** [s2n_connection.o] Error 1
make[1]: Leaving directory `/home/schinnas/work/src/s2n/tls'
make: *** [libs] Error 2
-- 8< --

I am not sure whether it's harmless to remove the #pragma lines and compile. However, it would be good to support older gcc compilers.

Please let me know if I am missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions