cornelisnetworks / opa-psm2

Other
37 stars 29 forks source link

Add missing extern keywords #44

Closed nmorey closed 4 years ago

nmorey commented 4 years ago

Starting from the upcoming GCC release 10, the default of -fcommon option will change to -fno-common: In C, global variables with multiple tentative definitions will result in linker errors. Global variable accesses are also more efficient on various targets.

This fixes compilations errors with -fno-common enabled

Signed-off-by: Nicolas Morey-Chaisemartin nmoreychaisemartin@suse.com

mwheinz commented 4 years ago

Thanks for the contribution. We will evaluate it as soon as we can.

mwheinz commented 4 years ago

This change should appear in the next release of libpsm2.