Skip to contentSkip to conversation

ibdiag_common.c: Move static to beginning of get_build_version declaration

PATCH Applied Hal Rosenstock 2 participants 2 messages Oct 12, 2015 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ibdiag_common.c: Move static to beginning of get_build_version declaration

Eliminate compiler warning:
src/ibdiag_common.c:85: warning: ?static? is not at beginning of declaration

---

src/ibdiag_common.c +1 -1
index e09623d..5424845 100644
@@ -82,7 +82,7 @@ static const char **prog_examples;
 static struct option *long_opts = NULL;
 static const struct ibdiag_opt *opts_map[256];
 
-const static char *get_build_version(void)
+static const char *get_build_version(void)
 {
 	return "BUILD VERSION: " IBDIAG_VERSION " Build date: " __DATE__ " "
 	    __TIME__;

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 561BA81B.9040902-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

Applied
#2 lore raw
Quoted 5 lines · Hal Rosenstock

Eliminate compiler warning:
src/ibdiag_common.c:85: warning: ?static? is not at beginning of declaration

Thanks applied,
Ira

Quoted 6 lines

---

src/ibdiag_common.c +0 -0
index e09623d..5424845 100644

src/ibdiag_common.c static const char **prog_examples; · line 88

Quoted 8 lines
src/ibdiag_common.c +1 -1
@@ -82,7 +82,7 @@ static const char **prog_examples;
 static struct option *long_opts = NULL;
 static const struct ibdiag_opt *opts_map[256];
 
-const static char *get_build_version(void)
+static const char *get_build_version(void)
 {
 	return "BUILD VERSION: " IBDIAG_VERSION " Build date: " __DATE__ " "
 	    __TIME__;

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html