Skip to content

Commit

Permalink
Lots of neatening + change UNUSED_ARG macro to recognise uses
Browse files Browse the repository at this point in the history
  • Loading branch information
john-h-k committed Nov 7, 2024
1 parent b1109cb commit f55061d
Show file tree
Hide file tree
Showing 41 changed files with 3,642 additions and 3,776 deletions.
13 changes: 12 additions & 1 deletion .clangd
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
CompilationDatabase: ./build
# TEMP: disable eep/riscv folders
If:
PathMatch: eep.*
Index:
Background: Skip

---

If:
PathMatch: riscv.*
Index:
Background: Skip

---

Expand Down
22 changes: 21 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
cmake_minimum_required(VERSION 3.13)
project(jcc C)
set(CMAKE_C_STANDARD 23)
set(CMAKE_C_STANDARD 11)

set(CMAKE_COMPILE_WARNING_AS_ERROR ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(
SOURCE_FILES
Expand Down Expand Up @@ -70,10 +71,29 @@ else()
-Wall
-Wextra
-Wpedantic
-Weverything
-Werror

-Wno-error=unused-parameter

-Wmissing-prototypes
-Wsign-conversion
-Wimplicit-fallthrough
-Wstrict-prototypes
-Wmissing-field-initializers

-Wno-missing-noreturn
-Wno-unused-macros
-Wno-switch-enum
-Wno-bad-function-cast
-Wno-undef
-Wno-padded
-Wno-declaration-after-statement
-Wno-class-varargs
-Wno-sign-conversion
-Wno-conditional-uninitialized
-Wno-shorten-64-to-32
-Wno-assign-enum
)
# TODO: remove binary literals in source
add_compile_options(-Wno-gnu-binary-literal)
Expand Down
Loading

0 comments on commit f55061d

Please sign in to comment.