Project

General

Profile

Actions

Bug #11527

closed

elf-tests simple-src.c triggers compiler errors

Added by Robert Mustacchi about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
tests
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

While running the elf test suites I found that the simple test failed. Looking at the log, I discovered the following:

Test: /opt/elf-tests/tests/linker-sets/simple (run as root)       [00:00] [FAIL]
22:13:44.57 /opt/elf-tests/tests/linker-sets/simple-src.c: In function 'main':
22:13:44.57 /opt/elf-tests/tests/linker-sets/simple-src.c:105:1: warning: control reaches end of non-void function [-Wreturn-type]
22:13:44.57  }
22:13:44.57  ^
22:13:44.63 execution of /opt/elf-tests/tests/linker-sets/simple-src.c failed

The problem here is straightforward. There is no return value in main(). We should just add it and fix the test.

Actions

Also available in: Atom PDF