Menu

#1981 clm: Build failure with gcc 5.4.0 and 6.1.1

5.1.FC
fixed
nobody
None
defect
clm
tests
5.1.M0
major
2016-08-30
2016-08-29
No

CLM fails to build with gcc 5.4.0 and 6.1.1:

make[2]: Entering directory '/home/opensaf/opensaf-staging/tests/clmsv'
  CC       clmtest-tet_ClmLongRdn.o
tet_ClmLongRdn.c: In function 'lock_node':
tet_ClmLongRdn.c:203:2: error: ignoring return value of 'system', declared with attribute warn_unused_result [-Werror=unused-result]
  system(command);
  ^~~~~~~~~~~~~~~
tet_ClmLongRdn.c: In function 'unlock_node':
tet_ClmLongRdn.c:195:2: error: ignoring return value of 'system', declared with attribute warn_unused_result [-Werror=unused-result]
  system(command);
  ^~~~~~~~~~~~~~~
tet_ClmLongRdn.c: In function 'remove_node':
tet_ClmLongRdn.c:212:2: error: ignoring return value of 'system', declared with attribute warn_unused_result [-Werror=unused-result]
  system(command);
  ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:771: recipe for target 'clmtest-tet_ClmLongRdn.o' failed

Discussion

  • Anders Widell

    Anders Widell - 2016-08-29
    • summary: clm: Build failure with gcc 6.1.1 --> clm: Build failure with gcc 5.4.0 and 6.1.1
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -CLM fails to build with gcc 6.1.1:
    +CLM fails to build with gcc 5.4.0 and 6.1.1:
    
     ~~~
     make[2]: Entering directory '/home/opensaf/opensaf-staging/tests/clmsv'
    
     
  • Anders Widell

    Anders Widell - 2016-08-30
    • status: unassigned --> fixed
     
  • Anders Widell

    Anders Widell - 2016-08-30

    This problem was fixed in the context of ticket [#1906]

    changeset: 7989:4d6caf6903cd
    user: A V Mahesh ma..@..com
    date: Tue Aug 30 11:05:31 2016 +0530
    summary: clm: test code build fix [#1906]

    [staging:4d6caf]

     

    Related

    Commit: [4d6caf]
    Tickets: #1906


Log in to post a comment.