Advertisement
goatbar

padding in C structures - libslas

Aug 24th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.21 KB | None | 0 0
  1. make clean; OPTIMIZE=1 make
  2. rm -f *.[ao]
  3. cc -O3 -funroll-loops -fexpensive-optimizations -ffast-math -DNDEBUG -Wall -Wextra -Wpadded   -c -o libslas.o libslas.c
  4. In file included from libslas.c:57:
  5. ./libslas.h:711:33: warning: padding struct 'LIBSLAS_HEADER' with 1 byte to align
  6.       'file_creation_DOY' [-Wpadded]
  7.     uint16_t                    file_creation_DOY;                  /*!< (c...
  8.                                 ^
  9. ./libslas.h:717:33: warning: padding struct 'LIBSLAS_HEADER' with 1 byte to align
  10.       'point_data_record_length' [-Wpadded]
  11.     uint16_t                    point_data_record_length;           /*!< (a...
  12.                                 ^
  13. ./libslas.h:720:33: warning: padding struct 'LIBSLAS_HEADER' with 4 bytes to align
  14.       'x_scale_factor' [-Wpadded]
  15.     double                      x_scale_factor;                     /*!< (c...
  16.                                 ^
  17. libslas.c:94:21: warning: padding struct 'INTERNAL_LIBSLAS_STRUCT' with 3 bytes to align 'mode'
  18.       [-Wpadded]
  19.   int32_t           mode;                       /*!<  File open mode (LIBSLAS_UPDATE, L...
  20.                     ^
  21. libslas.c:96:21: warning: padding struct 'INTERNAL_LIBSLAS_STRUCT' with 3 bytes to align 'pos'
  22.       [-Wpadded]
  23.   int64_t           pos;                        /*!<  Position of the LAS file pointer ...
  24.                     ^
  25. In file included from libslas.c:57:
  26. ./libslas.h:749:33: warning: padding struct 'LIBSLAS_VLR_HEADER' with 1 byte to align
  27.       'record_id' [-Wpadded]
  28.     uint16_t                    record_id;                          /*!< (c...
  29.                                 ^
  30. ./libslas.h:745:11: warning: padding size of 'LIBSLAS_VLR_HEADER' with 1 byte to alignment
  31.       boundary [-Wpadded]
  32.   typedef struct
  33.           ^
  34. ./libslas.h:783:33: warning: padding struct 'LIBSLAS_POINT_DATA' with 6 bytes to align
  35.       'gps_time' [-Wpadded]
  36.     double                      gps_time;                           /*!< (c...
  37.                                 ^
  38. ./libslas.h:763:11: warning: padding size of 'LIBSLAS_POINT_DATA' with 2 bytes to alignment
  39.       boundary [-Wpadded]
  40.   typedef struct
  41.           ^
  42. 9 warnings generated.
  43. ar -r libslas.a libslas.o
  44. ar: creating archive libslas.a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement