Skip to content

Commit

Permalink
Removed "-Wall" to make it somehow build on Ubuntu 22.04.
Browse files Browse the repository at this point in the history
  • Loading branch information
prokher committed Mar 20, 2024
1 parent aa9cc9e commit 25d1938
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 36 deletions.
10 changes: 5 additions & 5 deletions build/cmake/CondorConfigure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ message(STATUS "PYTHON_LIB = ${PYTHON_LIB}")
endif()

if( NOT "${PYTHON3_INSTALL_DIR}" MATCHES "registry")
execute_process(COMMAND "${PYTHON3_INSTALL_DIR}\\python.exe" "-c" "${PYTHON_QUERY_COMMAND}"
execute_process(COMMAND "${PYTHON3_INSTALL_DIR}\\python.exe" "-c" "${PYTHON_QUERY_COMMAND}"
RESULT_VARIABLE _PYTHON_SUCCESS
OUTPUT_VARIABLE _PYTHON_VALUES
ERROR_VARIABLE _PYTHON_ERROR_VALUE
Expand Down Expand Up @@ -706,7 +706,7 @@ endif()

if (WITH_ADDRESS_SANITIZER)
# Condor daemons dup stderr to /dev/null, so to see output need to run with
# ASAN_OPTIONS="log_path=/tmp/asan" condor_master
# ASAN_OPTIONS="log_path=/tmp/asan" condor_master
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fno-omit-frame-pointer")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fno-omit-frame-pointer")
Expand All @@ -715,7 +715,7 @@ endif()

if (WITH_UB_SANITIZER)
# Condor daemons dup stderr to /dev/null, so to see output need to run with
# UBSAN_OPTIONS="log_path=/tmp/asan print_stacktrace=true" condor_master
# UBSAN_OPTIONS="log_path=/tmp/asan print_stacktrace=true" condor_master
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined -fno-omit-frame-pointer")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=undefined -fno-omit-frame-pointer")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_C_FLAGS} -fsanitize=undefined -fno-omit-frame-pointer")
Expand Down Expand Up @@ -1113,9 +1113,9 @@ if(MSVC)
set(CONDOR_WIN_LIBS "crypt32.lib;mpr.lib;psapi.lib;mswsock.lib;netapi32.lib;imagehlp.lib;ws2_32.lib;powrprof.lib;iphlpapi.lib;userenv.lib;Pdh.lib")
else(MSVC)

check_c_compiler_flag(-Wall c_Wall)
check_c_compiler_flag( c_Wall)
if (c_Wall)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ")
endif(c_Wall)

# GGT tested compiling condor_history with -flto, it ran less than one tenth of one percent faster
Expand Down
12 changes: 6 additions & 6 deletions externals/bundles/krb5/1.4.3-p1/makefile1.freebsd.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
@@ -155,7 +155,7 @@
ALL_CFLAGS = $(DEFS) $(DEFINES) $(KRB_INCLUDES) $(LOCALINCLUDES) \
$(CPPFLAGS) $(CFLAGS) $(PTHREAD_CFLAGS)
-CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow -pedantic
+CFLAGS = -g -O2 -Wall -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow -pedantic -DEAI_NODATA=EAI_NONAME
PTHREAD_CFLAGS =
CPPFLAGS =
DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DKRB5_KRB4_COMPAT=1 -DHAVE_BT_RSEQ=1 -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1 -DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP=1 -DHAVE_NS_INITPARSE=1 -DHAVE_NS_NAME_UNCOMPRESS=1 -DHAVE_DN_SKIPNAME=1 -DHAVE_RES_SEARCH=1 -DHAVE_PRAGMA_WEAK_REF=1 -DDELAY_INITIALIZER=1 -DCONSTRUCTOR_ATTR_WORKS=1 -DDESTRUCTOR_ATTR_WORKS=1 -DHAVE_PTHREAD_ONCE=1 -DHAVE_PTHREAD_RWLOCK_INIT=1 -DHAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_REGCOMP=1 -DHAVE_REGEXEC=1 -DPOSIX_SIGTYPE=1 -Dkrb5_sigtype=void -DPOSIX_SIGNALS=1 -DHAVE_SA_LEN=1 -DGETPEERNAME_ARG2_TYPE=GETSOCKNAME_ARG2_TYPE -DGETPEERNAME_ARG3_TYPE=GETSOCKNAME_ARG3_TYPE -DGETSOCKNAME_ARG2_TYPE=struct\ sockaddr -DGETSOCKNAME_ARG3_TYPE=size_t

-CFLAGS = -g -O2 -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow -pedantic
+CFLAGS = -g -O2 -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow -pedantic -DEAI_NODATA=EAI_NONAME
PTHREAD_CFLAGS =
CPPFLAGS =
DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DKRB5_KRB4_COMPAT=1 -DHAVE_BT_RSEQ=1 -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1 -DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP=1 -DHAVE_NS_INITPARSE=1 -DHAVE_NS_NAME_UNCOMPRESS=1 -DHAVE_DN_SKIPNAME=1 -DHAVE_RES_SEARCH=1 -DHAVE_PRAGMA_WEAK_REF=1 -DDELAY_INITIALIZER=1 -DCONSTRUCTOR_ATTR_WORKS=1 -DDESTRUCTOR_ATTR_WORKS=1 -DHAVE_PTHREAD_ONCE=1 -DHAVE_PTHREAD_RWLOCK_INIT=1 -DHAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_REGCOMP=1 -DHAVE_REGEXEC=1 -DPOSIX_SIGTYPE=1 -Dkrb5_sigtype=void -DPOSIX_SIGNALS=1 -DHAVE_SA_LEN=1 -DGETPEERNAME_ARG2_TYPE=GETSOCKNAME_ARG2_TYPE -DGETPEERNAME_ARG3_TYPE=GETSOCKNAME_ARG3_TYPE -DGETSOCKNAME_ARG2_TYPE=struct\ sockaddr -DGETSOCKNAME_ARG3_TYPE=size_t
2 changes: 1 addition & 1 deletion externals/bundles/krb5/1.4.3-p1/src.appl.telnet.configure
Original file line number Diff line number Diff line change
Expand Up @@ -2658,7 +2658,7 @@ echo "${ECHO_T}$krb5_cv_prog_gnu_ld" >&6
# maybe add -Waggregate-return, or can we assume that actually works by now?
# -Wno-comment used to be used for SunOS system header <sys/stream.h>
# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.
extra_gcc_warn_opts="-Wall -Wmissing-prototypes -Wcast-qual \
extra_gcc_warn_opts=" -Wmissing-prototypes -Wcast-qual \
-Wcast-align -Wconversion -Wshadow"
if test "$GCC" = yes ; then
if test "x$krb5_ac_cflags_set" = xset ; then
Expand Down
12 changes: 6 additions & 6 deletions src/blahp/vendor/glite-build-common-cpp/m4/optimize.m4
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ AC_DEFUN([AC_OPTIMIZE],
fi],
optimizopt=$enableval
)
if test "x$optimizopt" = "xyes" ; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
if test "x$optimizopt" = "xyes" ; then
CXXFLAGS="-g -Wall $optimise"
CFLAGS="-g -Wall $optimise"
CXXFLAGS="-g $optimise"
CFLAGS="-g $optimise"
else
CXXFLAGS="-g -Wall $optimise"
CFLAGS="-g -Wall $optimise"
CXXFLAGS="-g $optimise"
CFLAGS="-g $optimise"
fi
AC_SUBST(CXXFLAGS)
Expand Down
10 changes: 5 additions & 5 deletions src/condor_dagman/condor_sdk.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
##
## Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
## University of Wisconsin-Madison, WI.
##
##
## Licensed under the Apache License, Version 2.0 (the "License"); you
## may not use this file except in compliance with the License. You may
## obtain a copy of the License at
##
##
## http://www.apache.org/licenses/LICENSE-2.0
##
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down Expand Up @@ -81,8 +81,8 @@ DEMANGLE = 2>&1 | c++filt

all: condor_dagman

C_PLUS_FLAGS = $(STD_C_PLUS_FLAGS) -Wall
CFLAGS = $(STD_C_FLAGS) -Wall
C_PLUS_FLAGS = $(STD_C_PLUS_FLAGS)
CFLAGS = $(STD_C_FLAGS)
LIB = -L../../lib -lcondorsdk

OBJ = dagman_main.o submit.o dag.o job.o util.o parse.o debug.o types.o script.o scriptQ.o dagman_instantiate.o
Expand Down
4 changes: 2 additions & 2 deletions src/gpu/Makefile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ condor_gpu_utilization.o : condor_gpu_utilization.cpp $(HEADERS)
gpu_function_pointers.o : gpu_function_pointers.cpp $(HEADERS)

condor_gpu_utilization : $(OBJECTS)
g++ -Wall -g -std=c++11 -o $@ -ldl $+
g++ -g -std=c++11 -o $@ -ldl $+

%.o : %.cpp
g++ -Wall -g -std=c++11 -I../condor_tools -c $< -o $@
g++ -g -std=c++11 -I../condor_tools -c $< -o $@

clean :
rm -f $(TARGETS) $(OBJECTS)
4 changes: 2 additions & 2 deletions src/openstack_gahp/rapidjson.src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ if(RAPIDJSON_HAS_STDSTRING)
endif()

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wall -Wextra -Werror")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wextra -Werror")
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wall -Wextra -Werror -Wno-missing-field-initializers")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wextra -Werror -Wno-missing-field-initializers")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
add_definitions(-D_CRT_SECURE_NO_WARNINGS=1)
endif()
Expand Down
6 changes: 3 additions & 3 deletions src/openstack_gahp/rapidjson.src/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ set(EXAMPLES
simplereader
simplewriter
tutorial)

include_directories("../include/")

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Weffc++ -Wswitch-default")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wextra -Weffc++ -Wswitch-default")
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Weffc++ -Wswitch-default")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wextra -Weffc++ -Wswitch-default")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
add_definitions(-D_CRT_SECURE_NO_WARNINGS=1)
endif()
Expand Down
4 changes: 2 additions & 2 deletions src/openstack_gahp/rapidjson.src/test/unittest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ set(UNITTEST_SOURCES
writertest.cpp)

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Weffc++ -Wswitch-default -Wfloat-equal")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wextra -Weffc++ -Wswitch-default -Wfloat-equal")
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Weffc++ -Wswitch-default -Wfloat-equal -Wimplicit-fallthrough")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wextra -Weffc++ -Wswitch-default -Wfloat-equal -Wimplicit-fallthrough")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
add_definitions(-D_CRT_SECURE_NO_WARNINGS=1)
endif()
Expand Down
8 changes: 4 additions & 4 deletions src/safefile/configure
Original file line number Diff line number Diff line change
Expand Up @@ -5587,8 +5587,8 @@ case ".$ac_cv_cflags_gcc_option__Werror" in
;;
esac
echo "$as_me:$LINENO: checking CFLAGS for gcc -Wall" >&5
echo $ECHO_N "checking CFLAGS for gcc -Wall... $ECHO_C" >&6
echo "$as_me:$LINENO: checking CFLAGS for gcc " >&5
echo $ECHO_N "checking CFLAGS for gcc ... $ECHO_C" >&6
if test "${ac_cv_cflags_gcc_option__Wall+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
Expand All @@ -5602,7 +5602,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_save_CFLAGS="$CFLAGS"
for ac_arg in "-pedantic -Werror % -Wall" "-pedantic % -Wall %% no, obsolete" #
for ac_arg in "-pedantic -Werror % " "-pedantic % %% no, obsolete" #
do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
Expand Down Expand Up @@ -7335,7 +7335,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_save_CFLAGS="$CFLAGS"
for ac_arg in "-check % " "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
for ac_arg in "-check % " "-pedantic % " "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
Expand Down

0 comments on commit 25d1938

Please sign in to comment.