Skip to content

Commit

Permalink
ofed: Fix build with -Werror -Wdate-time
Browse files Browse the repository at this point in the history
FreeBSD 14 adds -Werror -Wdate-time to its build which trips up on
opensm's build. Remove it from the code, as it doesn't really add much.

This fixes builds WITH_OFED_EXTRA.

PR: 270776
Upstream Pull-Request: linux-rdma/opensm#33
  • Loading branch information
igalic committed Apr 12, 2023
1 parent 421516f commit b2c366e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/ofed/opensm/opensm/osm_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,7 @@ static void help_version(FILE * out, int detail)

static void version_parse(char **p_last, osm_opensm_t * p_osm, FILE * out)
{
fprintf(out, "%s build %s %s\n", p_osm->osm_version, __DATE__, __TIME__);
fprintf(out, "%s\n", p_osm->osm_version);
}

/* more parse routines go here */
Expand Down

0 comments on commit b2c366e

Please sign in to comment.