Project

General

Profile

Bug #220

empty t_pargs block in gmx_principal.c breaks compile (PGI/Cray XT4)

Added by Martti Louhivuori about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Erik Lindahl
Category:
analysis tools
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

An empty t_pargs pa[] is declared in gmx_principal.c at lines 84-85. This breaks compile with PGI on Cray XT4 with the following output:

PGC-S-0036-Syntax error: Recovery attempted by inserting identifier .Z0000 before '}' (gmx_principal.c: 84)
PGC-W-0095-Type cast required for this conversion (gmx_principal.c: 84)
PGC-W-0155-Pointer value created from a nonlong integral type (gmx_principal.c: 84)
PGC/x86-64 Linux 7.2-3: compilation completed with severe errors

An addition of a dummy parameter fixes this, but a more elegant solution should be found.

<<<<<<< gmx_principal.c: lines 84-85
t_pargs pa[] = {
}; =======
bool foo;
t_pargs pa[] = { { "-foo", FALSE, etBOOL, {&foo}, "debug: empty array barfs" }
};

fixed gmx_principal.c

History

#1 Updated by Erik Lindahl about 12 years ago

Well, sometimes ugly hacks are less work - it's in the release branch now ;-)

Also available in: Atom PDF