sm components to use C++11 standard
This commit does not have any functional or performance change. This change adds -std=c++11 compile option to Makefiles to enalbe using C++11 standard features. This change also cleans errors that c++11 standard complains: Werror=literal-suffix, e.g: "msg_seq=%"PRIi64"." error: invalid suffix on literal; C++11 requires a space between literal and identifier changed to: "msg_seq=%" PRIi64 "." Story: 2003493 Task: 24770 Change-Id: I0225a4326ff8320f36246cc5678698781e903617 Signed-off-by: Bin Qian <bin.qian@windriver.com>
This commit is contained in:
parent
045a37c672
commit
c2c8228d30
|
@ -110,7 +110,7 @@ SRCS+=sm_service_domain_interface_not_in_use_state.c
|
|||
SRCS+=sm_configuration_table.c
|
||||
|
||||
OBJS= $(SRCS:.c=.o)
|
||||
CCFLAGS= -g -O2 -Wall -Werror -Wformat
|
||||
CCFLAGS= -g -O2 -Wall -Werror -Wformat -std=c++11
|
||||
EXTRACCFLAGS= -D__STDC_FORMAT_MACROS
|
||||
LDLIBS= -lsqlite3 -lglib-2.0 -luuid -lpthread -lrt -lsm_common -lsm_db -lfmcommon -ljson-c -lcrypto -lssl
|
||||
LDFLAGS = -rdynamic
|
||||
|
|
|
@ -29,7 +29,7 @@ OBJS = $(SRCS:.c=.o)
|
|||
CCFLAGS= -fPIC -g -O2 -Wall -Werror
|
||||
EXTRACCFLAGS= -D__STDC_FORMAT_MACROS -DSW_VERSION=\"$(SW_VERSION)\"
|
||||
|
||||
LDLIBS= -lsqlite3 -lglib-2.0 -lgmodule-2.0 -luuid -lrt -lpthread
|
||||
LDLIBS= -lsqlite3 -lglib-2.0 -lgmodule-2.0 -luuid -lrt -lpthread -std=c++11
|
||||
LDFLAGS = -shared -rdynamic
|
||||
|
||||
build: libsm_common.so libsm_watchdog_nfs.so sm_watchdog sm_eru sm_eru_dump
|
||||
|
|
|
@ -28,7 +28,7 @@ SRCS+=sm_db_build.c
|
|||
SRCS+=sm_db_configuration.c
|
||||
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
CCFLAGS= -fPIC -g -O2 -Wall -Werror
|
||||
CCFLAGS= -fPIC -g -O2 -Wall -Werror -std=c++11
|
||||
EXTRACCFLAGS= -D__STDC_FORMAT_MACROS
|
||||
LDLIBS= -lsqlite3 -lglib-2.0 -luuid -lrt -lsm_common
|
||||
LDFLAGS = -shared -rdynamic
|
||||
|
|
Loading…
Reference in New Issue