소스 검색

Merge pull request #11699 from richardkchapman/osx_warn

HPCC-20508 Fix some trivial build warnings

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 6 년 전
부모
커밋
7a4dbdb37b
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      common/remote/sockfile.cpp
  2. 1 1
      deployment/envgen2/EnvGen.hpp

+ 3 - 0
common/remote/sockfile.cpp

@@ -622,6 +622,8 @@ static IDAFS_Exception *createDafsException(int code, const char *msg)
     return new CDafsException(code, msg);
 }
 
+static IDAFS_Exception *createDafsExceptionVA(int code, const char *format, va_list args) __attribute__((format(printf,2,0)));
+
 static IDAFS_Exception *createDafsExceptionVA(int code, const char *format, va_list args)
 {
     StringBuffer eStr;
@@ -629,6 +631,7 @@ static IDAFS_Exception *createDafsExceptionVA(int code, const char *format, va_l
     return new CDafsException(code, eStr);
 }
 
+static IDAFS_Exception *createDafsExceptionV(int code, const char *format, ...) __attribute__((format(printf,2,3)));
 static IDAFS_Exception *createDafsExceptionV(int code, const char *format, ...)
 {
     va_list args;

+ 1 - 1
deployment/envgen2/EnvGen.hpp

@@ -13,7 +13,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
 ############################################################################## */
-#ifndef _EVNGEN2_INCL
+#ifndef _ENVGEN2_INCL
 #define _ENVGEN2_INCL
 
 //#include <vector>