Skip to content

Build error on GCC 4.8.5 #3048

Description

@maxsharabayko

Compiler: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)

/srt/haicrypt/cryspr.c: In function 'crysprFallback_MsEncrypt':
/srt/haicrypt/cryspr.c:473:6: error: 'for' loop initial declarations are only allowed in C99 mode
      for (size_t i = 0; i < sizeof(aad) / 4; ++i)
      ^
/srt/haicrypt/cryspr.c:473:6: note: use option -std=c99 or -std=gnu99 to compile your code
/srt/haicrypt/cryspr.c: In function 'crysprFallback_MsDecrypt':
/srt/haicrypt/cryspr.c:619:7: error: 'for' loop initial declarations are only allowed in C99 mode
       for (size_t i = 0; i < sizeof(aad) / 4; ++i)

Introduced in PR #2962.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugIndicates an unexpected problem or unintended behavior[core]Area: Changes in SRT library core

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions