lkml.org 
[lkml]   [2018]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] i2c: Remove '-Wno-deprecated-declarations' compiler warning
Date
This can be dropped with commit 771c035372a036f83353eef46dbb829780330234
("deprecate the '__deprecated' attribute warnings entirely and for good")
now in upstream.

Please, use the kbuild infrastruture to disable compiler warnings.
This should be...

CFLAGS_i2c-core-base.o := $(call cc-disable-warning, no-deprecated-declarations)

This has the advantage to check if other compilers like GCC support this.

NOTE: My compiler is a prerelease of LLVM/Clang version 7.

[1] https://clang.llvm.org/docs/DiagnosticsReference.html#wdeprecated-declarations

CC: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Sedat Dilek <sedat.dilek@credativ.de>
---
drivers/i2c/Makefile | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
index 72c94c60fdd1..bed6ba63c983 100644
--- a/drivers/i2c/Makefile
+++ b/drivers/i2c/Makefile
@@ -18,4 +18,3 @@ obj-$(CONFIG_I2C_STUB) += i2c-stub.o
obj-$(CONFIG_I2C_SLAVE_EEPROM) += i2c-slave-eeprom.o

ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG
-CFLAGS_i2c-core-base.o := -Wno-deprecated-declarations
--
2.18.0
\
 
 \ /
  Last update: 2018-08-19 15:53    [W:0.026 / U:2.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site