Skip to content

Commit

Permalink
Remove math.h not required anymore with #34
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlekiller committed Mar 5, 2022
1 parent a4f5907 commit 47001bf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ cmake_minimum_required(VERSION 2.8.12)
project(amdctl)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Wextra -std=c99")
add_executable(amdctl amdctl.c)
target_link_libraries(amdctl m)
1 change: 0 additions & 1 deletion amdctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
#include <math.h>

#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0)
Expand Down
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CC=gcc
CFLAGS=-Wall -pedantic -Wextra -std=c99 -O2 -lm
CFLAGS=-Wall -pedantic -Wextra -std=c99 -O2
all: amdctl
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
$(CC) -c -o $@ $< $(CFLAGS)

0 comments on commit 47001bf

Please sign in to comment.