Commit 0424d648 authored by Greg Williams's avatar Greg Williams
Browse files

Disabled complier warnings for some explicity test edge cases per pedantic C99 compliance

parent 5c6a8f04
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ PUB_INC = ./include
#===============================================================================
# Shared Build Variables
#===============================================================================
CC = gcc
CC ?= gcc
OPTIMIZE = -O3
WARN = -Wall -Wextra -pedantic
CDEFS += -D_POSIX_C_SOURCE=1 -D_C99_SOURCE=1
+1 −0
Original line number Diff line number Diff line
require 'kinetic-ruby'

KineticRuby::Rake::load_tasks
require 'ceedling'
Ceedling.load_project(config: './project.yml')
+9 −6
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@

:tools:
  :test_includes_preprocessor:
    :executable: gcc
    :executable: "#{ENV['CC']}"
    :arguments:
      - -E
      - -MM
@@ -112,7 +112,7 @@
      - -D_C99_SOURCE=1
      - ${1}
  :test_compiler:
    :executable: gcc
    :executable: "#{ENV['CC']}"
    :arguments:
      - -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
      - -I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE
@@ -125,17 +125,20 @@
      - -pedantic
      - -D_POSIX_C_SOURCE=1
      - -D_C99_SOURCE=1
      - -Wno-nonnull
      - -Wno-address
      - -Wno-missing-field-initializers
      - -c ${1}
      - -o ${2}
  :test_linker:
    :executable: gcc
    :executable: "#{ENV['CC']}"
    :name: test_linker
    :arguments:
      - "\"${1}\""
      - -l crypto
      - "-o \"${2}\""
  :gcov_linker:
    :executable: gcc
    :executable: "#{ENV['CC']}"
    :arguments:
      - -fprofile-arcs
      - -ftest-coverage
@@ -143,7 +146,7 @@
      - ${1}
      - -o ${2}
  :release_compiler:
    :executable: gcc
    :executable: "#{ENV['CC']}"
    :arguments:
      - -I"$": 'COLLECTION_PATHS_SOURCE_INCLUDE_VENDOR'
      - -I"$": 'COLLECTION_PATHS_RELEASE_TOOLCHAIN_INCLUDE'
@@ -161,7 +164,7 @@
      - "-c \"${1}\""
      - "-o \"${2}\""
  :release_linker:
    :executable: gcc
    :executable: "#{ENV['CC']}"
    :name: release_linker
    :arguments:
      - "\"${1}\""
+0 −2
Original line number Diff line number Diff line
@@ -53,12 +53,10 @@ void test_KineticAllocator_FreeAllPDUs_should_free_full_list_of_PDUs(void)
    LOG_LOCATION;
    const int count = 3;
    KineticListItem* list[count];
    KineticPDU* pdus[count];

    // Allocate some PDUs and list items to hold them
    for (int i = 0; i < count; i++) {
        list[i] = (KineticListItem*)malloc(sizeof(KineticListItem));
        pdus[i] = (KineticPDU*)malloc(sizeof(KineticPDU));
        LOGF("ALLOCATED item[%d]: 0x%0llX", i, (long long)list[i]);
    }