Project

General

Profile

Bug #33791

compiler warning: implicit declaration of function 'index'

Added by Vita Batrla 3 months ago. Updated about 2 months ago.

Status:
Résolu (à déployer)
Priority:
Normal
Category:
-
Target version:
-
Start date:
07 Jun 2019
Due date:
% Done:

100%

Patch proposed:
No
Planning:
No

Description

Compilation on Solaris reports following warning:

tests/basic_tests.c:2141:7: warning: implicit declaration of function 'index' [-Wimplicit-function-declaration]
qs = index(authnRequestUrl, '?') + 1;
^~~
tests/basic_tests.c:2141:7: warning: incompatible implicit declaration of built-in function 'index'

File tests/basic_tests.c uses index(3C) without including required head file <strings.h>.

0001-fix-missing-include-strings.h-for-index-fixes-33791.patch View (815 Bytes) Vita Batrla, 07 Jun 2019 12:52 PM

Associated revisions

Revision 3b72ad84 (diff)
Added by Benjamin Dauvergne about 2 months ago

fix missing include <strings.h> for index() (fixes #33791)

tests/basic_tests.c:2141:7: warning: implicit declaration of function 'index' [-Wimplicit-function-declaration]
qs = index(authnRequestUrl, '?') + 1;
^~~
tests/basic_tests.c:2141:7: warning: incompatible implicit declaration of built-in function 'index'

History

#2 Updated by Benjamin Dauvergne about 2 months ago

  • Assignee set to Benjamin Dauvergne

#3 Updated by Benjamin Dauvergne about 2 months ago

  • Status changed from Nouveau to Résolu (à déployer)
commit 3b72ad847c813fc4d2c3f63786810d6d1cca5416
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Thu Jul 4 16:12:42 2019 +0200

    fix missing include <strings.h> for index() (fixes #33791)

    tests/basic_tests.c:2141:7: warning: implicit declaration of function 'index' [-Wimplicit-function-declaration]
      qs = index(authnRequestUrl, '?') + 1;
           ^~~~~
    tests/basic_tests.c:2141:7: warning: incompatible implicit declaration of built-in function 'index'

#4 Updated by Benjamin Dauvergne about 2 months ago

  • % Done changed from 0 to 100

Also available in: Atom PDF