Print this page
6436 156 lint errors in common/crypto/edonr/edonr.c

@@ -23,14 +23,14 @@
  * Copyright (C) 2009, 2010, Jorn Amundsen <jorn.amundsen@ntnu.no>
  *
  * C header file to determine compile machine byte order. Take care when cross
  * compiling.
  *
- * $Id: byteorder.h 517 2013-02-17 20:34:39Z joern $
  */
 /*
  * Portions copyright (c) 2013, Saso Kiselkov, All rights reserved
+ * Copyright 2016 Gary Mills
  */
 
 #ifndef _CRYPTO_EDONR_BYTEORDER_H
 #define _CRYPTO_EDONR_BYTEORDER_H
 

@@ -132,12 +132,13 @@
 
 #if defined(__sparc)
 #if !defined(__arch64__) && !defined(__sparcv8) && defined(__sparcv9)
 #define __arch64__
 #endif
-#if defined(__GNUC__) || (defined(__SUNPRO_C) && __SUNPRO_C > 0x590)
-/* need Sun Studio C 5.10 and above for GNU inline assembly */
+#if defined(__GNUC__) || (defined(__SUNPRO_C) && __SUNPRO_C > 0x590 && \
+        !defined(__lint))
+/* need Sun Studio C 5.10 and above for GNU inline assembly, but not lint */
 #if defined(__arch64__)
 #define sparc_ld_swap64(s64, d64)                                       \
         __asm__("ldxa [%1]0x88,%0" : "=r"(d64) : "r"(s64))
 #define sparc_st_swap64(s64, d64)                                       \
         __asm__ volatile("stxa %0,[%1]0x88" : : "r"(s64), "r"(d64))