]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
fixed compiler warnings, some fixes in specfile to work with rpmbuild
authorAdrian Chiris <adrianc@mellanox.com>
Tue, 1 Apr 2014 14:33:45 +0000 (17:33 +0300)
committerAdrian Chiris <adrianc@mellanox.com>
Tue, 1 Apr 2014 14:33:45 +0000 (17:33 +0300)
mlxconfig/mlxcfg_ui.cpp
mstdump/crd_lib/crdump.c
mstflint.spec.in
reg_access/Makefile.am

index 0e95cd423ed23a9ce8ff018f3155e6d1acacc171..5ff5deb1f39ac9ba84b4df9411d44727823c6113 100644 (file)
@@ -171,7 +171,8 @@ if (question == NULL) {
      ansbuff[0] = '\0';
      fflush(stdout);
      //fgets(ansbuff, 30, stdin);
-     fscanf(stdin, "%30s", ansbuff);
+     int cnt = fscanf(stdin, "%30s", ansbuff);
+     (void)cnt; // avoid errors
 
      if (  strcasecmp(ansbuff, "y") &&
            strcasecmp(ansbuff, "yes"))  {
index 19979d6b312878ba434acef899b9428da3b755a2..0285eddf0f6f569e0cc2652e0d7f08c419507984 100755 (executable)
@@ -504,7 +504,8 @@ static int crd_read_line(IN FILE *fd, OUT char *tmp) {
         if (!feof(fd)) {
             int c = fgetc(fd);
             if (c == '#') {
-                fgets (tmp, 300, fd);
+                char* _ptr=fgets (tmp, 300, fd);
+                (void)_ptr;// avoid warnings
                 tmp[0] = 0;
                 continue;
             }
index 399c5e4db228e81c951f589d11465c772172ac83..5198331604ccefbea2b4d570cbc1afea04bd9e07 100644 (file)
@@ -2,11 +2,13 @@
 %{!?name: %define name mstflint}
 %{!?version: %define version @VERSION@}
 %{!?release: %define release 1}
+%{!?ppcbuild: %define ppcbuild 0}
+%{!?ppc64build: %define ppc64build 0}
 
 Summary: Mellanox firmware burning application
 Name: %{name}
 Version: %{version}
-Release: %{release}
+Release: 1
 License: GPL/BSD
 Url: http://openfabrics.org
 Group: System Environment/Base
index ebc798b24684d7e055f798306cf430b93037ab19..2582c8845fe54555914e100f8335451c4c32441b 100644 (file)
@@ -23,10 +23,6 @@ AM_CFLAGS = -W -Wall -Werror -g -MP -MD $(COMPILER_FPIC)
 
 noinst_LIBRARIES = libreg_access.a
 
-reg_accessincludedir=$(includedir)/mft/reg_access
-
-reg_accessinclude_HEADERS = reg_access.h
-
 libreg_access_a_SOURCES = reg_access.c
 libreg_access_a_DEPENDENCIES = $(USER_DIR)/tools_layouts/libtools_layouts.a
 libreg_access_a_LIBADD = $(libreg_access_a_DEPENDENCIES)