nseg: add return 0; to void functions (#18481)
This commit is contained in:
parent
5e6875008c
commit
33e8dcad99
1 changed files with 10 additions and 0 deletions
|
@ -74,6 +74,16 @@ def prepare_source(self):
|
|||
res_path = join_path(res.fetcher.stage.source_path, res.name)
|
||||
copy(res_path, join_path(self.build_directory, res_name))
|
||||
|
||||
if self.spec.satisfies('%fj'):
|
||||
sfiles = ['genwin.c', 'nseg.c']
|
||||
for s_name in sfiles:
|
||||
filter_file(
|
||||
'return;',
|
||||
'return 0;',
|
||||
join_path(self.build_directory, s_name),
|
||||
string=True
|
||||
)
|
||||
|
||||
def install(self, spec, prefix):
|
||||
with working_dir(self.build_directory):
|
||||
mkdirp(prefix.bin)
|
||||
|
|
Loading…
Reference in a new issue